diff options
Diffstat (limited to 'apps/plugins/rockboy')
-rw-r--r-- | apps/plugins/rockboy/menu.c | 8 |
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 | ||