summaryrefslogtreecommitdiff
path: root/apps/plugins/rockboy
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-03-17 09:02:53 +0000
committerJens Arnold <amiconn@rockbox.org>2007-03-17 09:02:53 +0000
commit79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d (patch)
treed5c3fbab0ec01d2b0ca7d5278f15cf45f79b0763 /apps/plugins/rockboy
parent1329d7d3fde426a290c03ee92b1c701dde49851c (diff)
downloadrockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.tar.gz
rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.zip
Let GCC check arguments of some more printf-style functions, also for plugins and codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r--apps/plugins/rockboy/menu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c
index abacd2c831..a3d64d60d0 100644
--- a/apps/plugins/rockboy/menu.c
+++ b/apps/plugins/rockboy/menu.c
@@ -167,7 +167,7 @@ static void build_slot_path(char *buf, size_t bufsiz, size_t slot_id) {
167 munge_name(name_buf, strlen(name_buf)); 167 munge_name(name_buf, strlen(name_buf));
168 168
169 /* glom the whole mess together */ 169 /* glom the whole mess together */
170 snprintf(buf, bufsiz, "%s/%s-%d.rbs", STATE_DIR, name_buf, slot_id + 1); 170 snprintf(buf, bufsiz, "%s/%s-%ld.rbs", STATE_DIR, name_buf, slot_id + 1);
171} 171}
172 172
173/* 173/*
@@ -263,17 +263,17 @@ static void slot_info(char *info_buf, size_t info_bufsiz, size_t slot_id) {
263 if (read(fd, buf, 20) > 0) 263 if (read(fd, buf, 20) > 0)
264 { 264 {
265 buf[20] = '\0'; 265 buf[20] = '\0';
266 snprintf(info_buf, info_bufsiz, "%d. %s", slot_id + 1, buf); 266 snprintf(info_buf, info_bufsiz, "%ld. %s", slot_id + 1, buf);
267 } 267 }
268 else 268 else
269 snprintf(info_buf, info_bufsiz, "%d. ERROR", slot_id + 1); 269 snprintf(info_buf, info_bufsiz, "%ld. ERROR", slot_id + 1);
270 270
271 close(fd); 271 close(fd);
272 } 272 }
273 else 273 else
274 { 274 {
275 /* if we couldn't open the file, then the slot is empty */ 275 /* if we couldn't open the file, then the slot is empty */
276 snprintf(info_buf, info_bufsiz, "%d. %s", slot_id + 1, "<Empty>"); 276 snprintf(info_buf, info_bufsiz, "%ld. %s", slot_id + 1, "<Empty>");
277 } 277 }
278} 278}
279 279