diff options
Diffstat (limited to 'libbb/loop.c')
-rw-r--r-- | libbb/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c index b69d9d961..eb7016d56 100644 --- a/libbb/loop.c +++ b/libbb/loop.c | |||
@@ -56,7 +56,7 @@ char* FAST_FUNC query_loop(const char *device) | |||
56 | fd = open(device, O_RDONLY); | 56 | fd = open(device, O_RDONLY); |
57 | if (fd >= 0) { | 57 | if (fd >= 0) { |
58 | if (ioctl(fd, BB_LOOP_GET_STATUS, &loopinfo) == 0) { | 58 | if (ioctl(fd, BB_LOOP_GET_STATUS, &loopinfo) == 0) { |
59 | dev = xasprintf("%lu %s", (long) loopinfo.lo_offset, | 59 | dev = xasprintf("%"OFF_FMT"u %s", (off_t) loopinfo.lo_offset, |
60 | (char *)loopinfo.lo_file_name); | 60 | (char *)loopinfo.lo_file_name); |
61 | } | 61 | } |
62 | close(fd); | 62 | close(fd); |