summaryrefslogtreecommitdiff
path: root/firmware/id3.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-05-13 12:29:34 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-05-13 12:29:34 +0000
commit2382044ffca161910eb9e4bddf01a4bb2bc7481f (patch)
treeb1e3f9e08b47e60ad3f1ea3658794eb4f78cc4d1 /firmware/id3.c
parent0631a1dcce95d2cde96dd205f85b7d849215aaa5 (diff)
downloadrockbox-2382044ffca161910eb9e4bddf01a4bb2bc7481f.zip
rockbox-2382044ffca161910eb9e4bddf01a4bb2bc7481f.tar.gz
rockbox-2382044ffca161910eb9e4bddf01a4bb2bc7481f.tar.bz2
rockbox-2382044ffca161910eb9e4bddf01a4bb2bc7481f.tar.xz
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.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/firmware/id3.c b/firmware/id3.c
index e4da9da..a1cd713 100644
--- a/firmware/id3.c
+++ b/firmware/id3.c
@@ -26,8 +26,8 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#include <stdbool.h>
#include "file.h"
-#include "types.h"
#include "id3.h"
@@ -107,7 +107,7 @@ stripspaces(char *buffer)
* Arguments: file - the MP3 file to scen for a ID3v1 tag
* entry - the entry to set the title in
*
- * Returns: TRUE if a title was found and created, else FALSE
+ * Returns: true if a title was found and created, else false
*/
static bool
setid3v1title(int fd, mp3entry *entry)
@@ -119,7 +119,7 @@ setid3v1title(int fd, mp3entry *entry)
for(i=0;i<3;i++) {
if(-1 == lseek(fd, offsets[i], SEEK_END))
- return FALSE;
+ return false;
buffer[30]=0;
read(fd, buffer, 30);
@@ -143,7 +143,7 @@ setid3v1title(int fd, mp3entry *entry)
}
}
- return TRUE;
+ return true;
}
@@ -153,7 +153,7 @@ setid3v1title(int fd, mp3entry *entry)
* Arguments: file - the MP3 file to scen for a ID3v2 tag
* entry - the entry to set the title in
*
- * Returns: TRUE if a title was found and created, else FALSE
+ * Returns: true if a title was found and created, else false
*/
static void
setid3v2title(int fd, mp3entry *entry)
@@ -484,7 +484,7 @@ mp3info(mp3entry *entry, char *filename)
int fd;
fd = open(filename, O_RDONLY);
if(-1 == fd)
- return TRUE;
+ return true;
memset(entry, 0, sizeof(mp3entry));
@@ -504,7 +504,7 @@ mp3info(mp3entry *entry, char *filename)
close(fd);
- return FALSE;
+ return false;
}
#ifdef DEBUG_STANDALONE