summaryrefslogtreecommitdiffstats
path: root/apps/plugins/rockboy/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/rockboy/menu.c')
-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) {
munge_name(name_buf, strlen(name_buf));
/* glom the whole mess together */
- snprintf(buf, bufsiz, "%s/%s-%d.rbs", STATE_DIR, name_buf, slot_id + 1);
+ snprintf(buf, bufsiz, "%s/%s-%ld.rbs", STATE_DIR, name_buf, slot_id + 1);
}
/*
@@ -263,17 +263,17 @@ static void slot_info(char *info_buf, size_t info_bufsiz, size_t slot_id) {
if (read(fd, buf, 20) > 0)
{
buf[20] = '\0';
- snprintf(info_buf, info_bufsiz, "%d. %s", slot_id + 1, buf);
+ snprintf(info_buf, info_bufsiz, "%ld. %s", slot_id + 1, buf);
}
else
- snprintf(info_buf, info_bufsiz, "%d. ERROR", slot_id + 1);
+ snprintf(info_buf, info_bufsiz, "%ld. ERROR", slot_id + 1);
close(fd);
}
else
{
/* if we couldn't open the file, then the slot is empty */
- snprintf(info_buf, info_bufsiz, "%d. %s", slot_id + 1, "<Empty>");
+ snprintf(info_buf, info_bufsiz, "%ld. %s", slot_id + 1, "<Empty>");
}
}