diff options
author | Björn Stenberg <bjorn@haxx.se> | 2002-05-13 12:29:34 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2002-05-13 12:29:34 +0000 |
commit | 2382044ffca161910eb9e4bddf01a4bb2bc7481f (patch) | |
tree | b1e3f9e08b47e60ad3f1ea3658794eb4f78cc4d1 /firmware/common | |
parent | 0631a1dcce95d2cde96dd205f85b7d849215aaa5 (diff) | |
download | rockbox-2382044ffca161910eb9e4bddf01a4bb2bc7481f.tar.gz rockbox-2382044ffca161910eb9e4bddf01a4bb2bc7481f.zip |
Changing to C99 'bool' type
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@561 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rw-r--r-- | firmware/common/dir.c | 8 | ||||
-rw-r--r-- | firmware/common/file.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c index acc412c570..f7f61719a2 100644 --- a/firmware/common/dir.c +++ b/firmware/common/dir.c | |||
@@ -18,14 +18,14 @@ | |||
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | #include <stdio.h> | 19 | #include <stdio.h> |
20 | #include <string.h> | 20 | #include <string.h> |
21 | #include <stdbool.h> | ||
21 | #include "fat.h" | 22 | #include "fat.h" |
22 | #include "dir.h" | 23 | #include "dir.h" |
23 | #include "debug.h" | 24 | #include "debug.h" |
24 | #include "types.h" | ||
25 | 25 | ||
26 | static DIR thedir; | 26 | static DIR thedir; |
27 | static struct dirent theent; | 27 | static struct dirent theent; |
28 | static bool busy=FALSE; | 28 | static bool busy=false; |
29 | 29 | ||
30 | DIR* opendir(char* name) | 30 | DIR* opendir(char* name) |
31 | { | 31 | { |
@@ -70,14 +70,14 @@ DIR* opendir(char* name) | |||
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | busy = TRUE; | 73 | busy = true; |
74 | 74 | ||
75 | return &thedir; | 75 | return &thedir; |
76 | } | 76 | } |
77 | 77 | ||
78 | int closedir(DIR* dir) | 78 | int closedir(DIR* dir) |
79 | { | 79 | { |
80 | busy=FALSE; | 80 | busy=false; |
81 | return 0; | 81 | return 0; |
82 | } | 82 | } |
83 | 83 | ||
diff --git a/firmware/common/file.c b/firmware/common/file.c index 9d18c613bf..3b7a889833 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c | |||
@@ -18,9 +18,9 @@ | |||
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | #include <string.h> | 19 | #include <string.h> |
20 | #include <errno.h> | 20 | #include <errno.h> |
21 | #include <stdbool.h> | ||
21 | #include "file.h" | 22 | #include "file.h" |
22 | #include "fat.h" | 23 | #include "fat.h" |
23 | #include "types.h" | ||
24 | #include "dir.h" | 24 | #include "dir.h" |
25 | #include "debug.h" | 25 | #include "debug.h" |
26 | 26 | ||
@@ -111,13 +111,13 @@ int open(char* pathname, int flags) | |||
111 | 111 | ||
112 | openfiles[fd].cacheoffset = -1; | 112 | openfiles[fd].cacheoffset = -1; |
113 | openfiles[fd].fileoffset = 0; | 113 | openfiles[fd].fileoffset = 0; |
114 | openfiles[fd].busy = TRUE; | 114 | openfiles[fd].busy = true; |
115 | return fd; | 115 | return fd; |
116 | } | 116 | } |
117 | 117 | ||
118 | int close(int fd) | 118 | int close(int fd) |
119 | { | 119 | { |
120 | openfiles[fd].busy = FALSE; | 120 | openfiles[fd].busy = false; |
121 | return 0; | 121 | return 0; |
122 | } | 122 | } |
123 | 123 | ||