summaryrefslogtreecommitdiff
path: root/apps/dbtree.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-12-05 22:44:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-12-05 22:44:42 +0000
commitf981ea93fb411019133a022c7dd873166d66b5dd (patch)
tree4f671d67b6584068d4e388c5fd4b6cdd54b5cca2 /apps/dbtree.c
parent5c3546ccbb14b576fd5eef3815bdfc97047de422 (diff)
downloadrockbox-f981ea93fb411019133a022c7dd873166d66b5dd.tar.gz
rockbox-f981ea93fb411019133a022c7dd873166d66b5dd.zip
kill gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8162 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/dbtree.c')
-rw-r--r--apps/dbtree.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/dbtree.c b/apps/dbtree.c
index b8a4c4703e..a9d90b348b 100644
--- a/apps/dbtree.c
+++ b/apps/dbtree.c
@@ -88,13 +88,13 @@ int db_load(struct tree_context* c)
88 static const int tables[] = {allartists, allalbums, allsongs, 88 static const int tables[] = {allartists, allalbums, allsongs,
89 search }; 89 search };
90 char* nbuf = (char*)nptr; 90 char* nbuf = (char*)nptr;
91 char* labels[] = { str(LANG_ID3DB_ARTISTS), 91 unsigned char* labels[] = { str(LANG_ID3DB_ARTISTS),
92 str(LANG_ID3DB_ALBUMS), 92 str(LANG_ID3DB_ALBUMS),
93 str(LANG_ID3DB_SONGS), 93 str(LANG_ID3DB_SONGS),
94 str(LANG_ID3DB_SEARCH)}; 94 str(LANG_ID3DB_SEARCH)};
95 DEBUGF("dbload table root\n"); 95 DEBUGF("dbload table root\n");
96 for (i=0; i < 4; i++) { 96 for (i=0; i < 4; i++) {
97 strcpy(nbuf, labels[i]); 97 strcpy(nbuf, (char *)labels[i]);
98 dptr[0] = (unsigned long)nbuf; 98 dptr[0] = (unsigned long)nbuf;
99 dptr[1] = tables[i]; 99 dptr[1] = tables[i];
100 nbuf += strlen(nbuf) + 1; 100 nbuf += strlen(nbuf) + 1;
@@ -109,12 +109,12 @@ int db_load(struct tree_context* c)
109 searchalbums, 109 searchalbums,
110 searchsongs}; 110 searchsongs};
111 char* nbuf = (char*)nptr; 111 char* nbuf = (char*)nptr;
112 char* labels[] = { str(LANG_ID3DB_SEARCH_ARTISTS), 112 unsigned char* labels[] = { str(LANG_ID3DB_SEARCH_ARTISTS),
113 str(LANG_ID3DB_SEARCH_ALBUMS), 113 str(LANG_ID3DB_SEARCH_ALBUMS),
114 str(LANG_ID3DB_SEARCH_SONGS)}; 114 str(LANG_ID3DB_SEARCH_SONGS)};
115 DEBUGF("dbload table search\n"); 115 DEBUGF("dbload table search\n");
116 for (i=0; i < 3; i++) { 116 for (i=0; i < 3; i++) {
117 strcpy(nbuf, labels[i]); 117 strcpy(nbuf, (char *)labels[i]);
118 dptr[0] = (unsigned long)nbuf; 118 dptr[0] = (unsigned long)nbuf;
119 dptr[1] = tables[i]; 119 dptr[1] = tables[i];
120 nbuf += strlen(nbuf) + 1; 120 nbuf += strlen(nbuf) + 1;
@@ -131,9 +131,9 @@ int db_load(struct tree_context* c)
131 i = db_search(c, searchstring); 131 i = db_search(c, searchstring);
132 c->dirlength = c->filesindir = i; 132 c->dirlength = c->filesindir = i;
133 if (c->dirfull) { 133 if (c->dirfull) {
134 gui_syncsplash(HZ, true, "%s %s", 134 gui_syncsplash(HZ, true, (unsigned char *)"%s %s",
135 str(LANG_SHOWDIR_ERROR_BUFFER), 135 str(LANG_SHOWDIR_ERROR_BUFFER),
136 str(LANG_SHOWDIR_ERROR_FULL)); 136 str(LANG_SHOWDIR_ERROR_FULL));
137 c->dirfull = false; 137 c->dirfull = false;
138 } 138 }
139 else 139 else
@@ -313,7 +313,7 @@ int db_load(struct tree_context* c)
313 } 313 }
314 314
315 if (c->currtable == albums4artist && !c->dirfull) { 315 if (c->currtable == albums4artist && !c->dirfull) {
316 strcpy((char*)nptr, str(LANG_ID3DB_ALL_SONGS)); 316 strcpy((char*)nptr, (char *)str(LANG_ID3DB_ALL_SONGS));
317 dptr[0] = (unsigned long)nptr; 317 dptr[0] = (unsigned long)nptr;
318 dptr[1] = extra; /* offset to artist */ 318 dptr[1] = extra; /* offset to artist */
319 hits++; 319 hits++;
@@ -554,7 +554,7 @@ int db_get_icon(struct tree_context* c)
554 } 554 }
555 555
556#ifdef HAVE_LCD_BITMAP 556#ifdef HAVE_LCD_BITMAP
557 return bitmap_icons_6x8[icon]; 557 return (char *)bitmap_icons_6x8[icon];
558#else 558#else
559 return icon; 559 return icon;
560#endif 560#endif