diff options
Diffstat (limited to 'libbb/loop.c')
-rw-r--r-- | libbb/loop.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libbb/loop.c b/libbb/loop.c index 0b05cd75f..da41d1e76 100644 --- a/libbb/loop.c +++ b/libbb/loop.c | |||
@@ -8,13 +8,6 @@ | |||
8 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 8 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <features.h> | ||
12 | #include <stdio.h> | ||
13 | #include <errno.h> | ||
14 | #include <fcntl.h> | ||
15 | #include <string.h> | ||
16 | #include <unistd.h> | ||
17 | #include <sys/ioctl.h> | ||
18 | #include "libbb.h" | 11 | #include "libbb.h" |
19 | 12 | ||
20 | /* For 2.6, use the cleaned up header to get the 64 bit API. */ | 13 | /* For 2.6, use the cleaned up header to get the 64 bit API. */ |
@@ -59,7 +52,7 @@ char *query_loop(const char *device) | |||
59 | 52 | ||
60 | if ((fd = open(device, O_RDONLY)) < 0) return 0; | 53 | if ((fd = open(device, O_RDONLY)) < 0) return 0; |
61 | if (!ioctl(fd, BB_LOOP_GET_STATUS, &loopinfo)) | 54 | if (!ioctl(fd, BB_LOOP_GET_STATUS, &loopinfo)) |
62 | dev=bb_xasprintf("%ld %s", (long) loopinfo.lo_offset, | 55 | dev=xasprintf("%ld %s", (long) loopinfo.lo_offset, |
63 | (char *)loopinfo.lo_file_name); | 56 | (char *)loopinfo.lo_file_name); |
64 | close(fd); | 57 | close(fd); |
65 | 58 | ||