diff --git a/apps/play.c b/apps/play.c index 330f4a10b6..68642cf14a 100644 --- a/apps/play.c +++ b/apps/play.c @@ -42,7 +42,7 @@ void playtune(char *filename) { static char mfile[256]; - mp3entry mp3; + struct mp3entry mp3; bool good=1; #ifdef HAVE_LCD_BITMAP char buffer[256]; diff --git a/apps/wps.c b/apps/wps.c index 49e9345912..fb878d6aaf 100644 --- a/apps/wps.c +++ b/apps/wps.c @@ -40,7 +40,7 @@ /* demonstrates showing different formats from playtune */ void wps_show_play(char* filename) { - mp3entry mp3; + struct mp3entry mp3; mp3info(&mp3,filename); switch ( global_settings.wps_display ) { diff --git a/firmware/id3.c b/firmware/id3.c index e32d55f930..f76edc96a3 100644 --- a/firmware/id3.c +++ b/firmware/id3.c @@ -110,7 +110,7 @@ stripspaces(char *buffer) * Returns: true if a title was found and created, else false */ static bool -setid3v1title(int fd, mp3entry *entry) +setid3v1title(int fd, struct mp3entry *entry) { char buffer[31]; int offsets[3] = {-95,-65,-125}; @@ -155,7 +155,7 @@ setid3v1title(int fd, mp3entry *entry) * Returns: true if a title was found and created, else false */ static void -setid3v2title(int fd, mp3entry *entry) +setid3v2title(int fd, struct mp3entry *entry) { unsigned int minframesize; int size; @@ -345,7 +345,7 @@ getid3v1len(int fd) * -1 means that it couldn't be calculated */ static int -getsonglength(int fd, mp3entry *entry) +getsonglength(int fd, struct mp3entry *entry) { unsigned long header=0; unsigned char tmp; @@ -480,14 +480,14 @@ getsonglength(int fd, mp3entry *entry) * Returns: void */ bool -mp3info(mp3entry *entry, char *filename) +mp3info(struct mp3entry *entry, char *filename) { int fd; fd = open(filename, O_RDONLY); if(-1 == fd) return true; - memset(entry, 0, sizeof(mp3entry)); + memset(entry, 0, sizeof(struct mp3entry)); entry->path = filename; @@ -524,7 +524,7 @@ int main(int argc, char **argv) { int i; for(i=1; i