summaryrefslogtreecommitdiff
path: root/firmware/id3.c
diff options
context:
space:
mode:
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 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 */
112static bool 112static bool
113setid3v1title(int fd, mp3entry *entry) 113setid3v1title(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 */
158static void 158static void
159setid3v2title(int fd, mp3entry *entry) 159setid3v2title(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