diff options
Diffstat (limited to 'apps/plugins/rockboy/menu.c')
-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 2f6c3102ff..e081a81d18 100644 --- a/apps/plugins/rockboy/menu.c +++ b/apps/plugins/rockboy/menu.c | |||
@@ -158,7 +158,7 @@ static void build_slot_path(char *buf, size_t bufsiz, size_t slot_id) { | |||
158 | munge_name(name_buf, strlen(name_buf)); | 158 | munge_name(name_buf, strlen(name_buf)); |
159 | 159 | ||
160 | /* glom the whole mess together */ | 160 | /* glom the whole mess together */ |
161 | snprintf(buf, bufsiz, "%s/%s-%ld.rbs", STATE_DIR, name_buf, slot_id + 1); | 161 | snprintf(buf, bufsiz, "%s/%s-%zud.rbs", STATE_DIR, name_buf, slot_id + 1); |
162 | } | 162 | } |
163 | 163 | ||
164 | /* | 164 | /* |
@@ -253,17 +253,17 @@ static void slot_info(char *info_buf, size_t info_bufsiz, size_t slot_id) { | |||
253 | if (read(fd, buf, 20) > 0) | 253 | if (read(fd, buf, 20) > 0) |
254 | { | 254 | { |
255 | buf[20] = '\0'; | 255 | buf[20] = '\0'; |
256 | snprintf(info_buf, info_bufsiz, "%ld. %s", slot_id + 1, buf); | 256 | snprintf(info_buf, info_bufsiz, "%zud. %s", slot_id + 1, buf); |
257 | } | 257 | } |
258 | else | 258 | else |
259 | snprintf(info_buf, info_bufsiz, "%ld. ERROR", slot_id + 1); | 259 | snprintf(info_buf, info_bufsiz, "%zud. ERROR", slot_id + 1); |
260 | 260 | ||
261 | close(fd); | 261 | close(fd); |
262 | } | 262 | } |
263 | else | 263 | else |
264 | { | 264 | { |
265 | /* if we couldn't open the file, then the slot is empty */ | 265 | /* if we couldn't open the file, then the slot is empty */ |
266 | snprintf(info_buf, info_bufsiz, "%ld. %s", slot_id + 1, "<Empty>"); | 266 | snprintf(info_buf, info_bufsiz, "%zu. %s", slot_id + 1, "<Empty>"); |
267 | } | 267 | } |
268 | } | 268 | } |
269 | 269 | ||