diff options
Diffstat (limited to 'util-linux/freeramdisk.c')
-rw-r--r-- | util-linux/freeramdisk.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c index c959158c9..9e1c453e4 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c | |||
@@ -9,13 +9,6 @@ | |||
9 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <stdio.h> | ||
13 | #include <string.h> | ||
14 | #include <sys/types.h> | ||
15 | #include <fcntl.h> | ||
16 | #include <sys/ioctl.h> | ||
17 | #include <stdlib.h> | ||
18 | #include <unistd.h> | ||
19 | #include "busybox.h" | 12 | #include "busybox.h" |
20 | 13 | ||
21 | /* From <linux/fd.h> */ | 14 | /* From <linux/fd.h> */ |
@@ -28,7 +21,7 @@ int freeramdisk_main(int argc, char **argv) | |||
28 | 21 | ||
29 | if (argc != 2) bb_show_usage(); | 22 | if (argc != 2) bb_show_usage(); |
30 | 23 | ||
31 | fd = bb_xopen(argv[1], O_RDWR); | 24 | fd = xopen(argv[1], O_RDWR); |
32 | 25 | ||
33 | // Act like freeramdisk, fdflush, or both depending on configuration. | 26 | // Act like freeramdisk, fdflush, or both depending on configuration. |
34 | result = ioctl(fd, (ENABLE_FREERAMDISK && bb_applet_name[1]=='r') | 27 | result = ioctl(fd, (ENABLE_FREERAMDISK && bb_applet_name[1]=='r') |