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/id3.c | |
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/id3.c')
-rw-r--r-- | firmware/id3.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/id3.c b/firmware/id3.c index e4da9da1b6..a1cd7139c0 100644 --- a/firmware/id3.c +++ b/firmware/id3.c | |||
@@ -26,8 +26,8 @@ | |||
26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
27 | #include <string.h> | 27 | #include <string.h> |
28 | #include <errno.h> | 28 | #include <errno.h> |
29 | #include <stdbool.h> | ||
29 | #include "file.h" | 30 | #include "file.h" |
30 | #include "types.h" | ||
31 | 31 | ||
32 | #include "id3.h" | 32 | #include "id3.h" |
33 | 33 | ||
@@ -107,7 +107,7 @@ stripspaces(char *buffer) | |||
107 | * Arguments: file - the MP3 file to scen for a ID3v1 tag | 107 | * Arguments: file - the MP3 file to scen for a ID3v1 tag |
108 | * entry - the entry to set the title in | 108 | * entry - the entry to set the title in |
109 | * | 109 | * |
110 | * Returns: TRUE if a title was found and created, else FALSE | 110 | * Returns: true if a title was found and created, else false |
111 | */ | 111 | */ |
112 | static bool | 112 | static bool |
113 | setid3v1title(int fd, mp3entry *entry) | 113 | setid3v1title(int fd, mp3entry *entry) |
@@ -119,7 +119,7 @@ setid3v1title(int fd, mp3entry *entry) | |||
119 | 119 | ||
120 | for(i=0;i<3;i++) { | 120 | for(i=0;i<3;i++) { |
121 | if(-1 == lseek(fd, offsets[i], SEEK_END)) | 121 | if(-1 == lseek(fd, offsets[i], SEEK_END)) |
122 | return FALSE; | 122 | return false; |
123 | 123 | ||
124 | buffer[30]=0; | 124 | buffer[30]=0; |
125 | read(fd, buffer, 30); | 125 | read(fd, buffer, 30); |
@@ -143,7 +143,7 @@ setid3v1title(int fd, mp3entry *entry) | |||
143 | } | 143 | } |
144 | } | 144 | } |
145 | 145 | ||
146 | return TRUE; | 146 | return true; |
147 | } | 147 | } |
148 | 148 | ||
149 | 149 | ||
@@ -153,7 +153,7 @@ setid3v1title(int fd, mp3entry *entry) | |||
153 | * Arguments: file - the MP3 file to scen for a ID3v2 tag | 153 | * Arguments: file - the MP3 file to scen for a ID3v2 tag |
154 | * entry - the entry to set the title in | 154 | * entry - the entry to set the title in |
155 | * | 155 | * |
156 | * Returns: TRUE if a title was found and created, else FALSE | 156 | * Returns: true if a title was found and created, else false |
157 | */ | 157 | */ |
158 | static void | 158 | static void |
159 | setid3v2title(int fd, mp3entry *entry) | 159 | setid3v2title(int fd, mp3entry *entry) |
@@ -484,7 +484,7 @@ mp3info(mp3entry *entry, char *filename) | |||
484 | int fd; | 484 | int fd; |
485 | fd = open(filename, O_RDONLY); | 485 | fd = open(filename, O_RDONLY); |
486 | if(-1 == fd) | 486 | if(-1 == fd) |
487 | return TRUE; | 487 | return true; |
488 | 488 | ||
489 | memset(entry, 0, sizeof(mp3entry)); | 489 | memset(entry, 0, sizeof(mp3entry)); |
490 | 490 | ||
@@ -504,7 +504,7 @@ mp3info(mp3entry *entry, char *filename) | |||
504 | 504 | ||
505 | close(fd); | 505 | close(fd); |
506 | 506 | ||
507 | return FALSE; | 507 | return false; |
508 | } | 508 | } |
509 | 509 | ||
510 | #ifdef DEBUG_STANDALONE | 510 | #ifdef DEBUG_STANDALONE |