projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ahem: add new faq entry to list at top of FAQ.html
[oweals/busybox.git]
/
util-linux
/
freeramdisk.c
diff --git
a/util-linux/freeramdisk.c
b/util-linux/freeramdisk.c
index af00c667806c43c3282f6ac8c8a1f3fa8ebed250..e5061dc34bba6bff32b064ec4ff86616632285f3 100644
(file)
--- a/
util-linux/freeramdisk.c
+++ b/
util-linux/freeramdisk.c
@@
-27,6
+27,7
@@
#include <fcntl.h>
#include <sys/ioctl.h>
#include <stdlib.h>
+#include <unistd.h>
#include "busybox.h"
@@
-44,7
+45,7
@@
freeramdisk_main(int argc, char **argv)
}
fd = bb_xopen(argv[1], O_RDWR);
-
+
result = ioctl(fd, BLKFLSBUF);
#ifdef CONFIG_FEATURE_CLEAN_UP
close(fd);