diff options
author | Rob Landley <rob@landley.net> | 2005-09-08 03:11:58 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-09-08 03:11:58 +0000 |
commit | 658d2cf98616e377fdcf8cde380fec10d966a689 (patch) | |
tree | ded519582e91404e7439409ee62e6abe302f238c /util-linux/fdflush.c | |
parent | 02eb934b0f7120cfb783536d6b27f7e092fb991b (diff) | |
download | busybox-w32-658d2cf98616e377fdcf8cde380fec10d966a689.tar.gz busybox-w32-658d2cf98616e377fdcf8cde380fec10d966a689.tar.bz2 busybox-w32-658d2cf98616e377fdcf8cde380fec10d966a689.zip |
Tito sent in a few patches converting instances of CONFIG_FEATURE_CLEAN_UP to
ENABLE_FEATURE_CLEAN_UP.
Diffstat (limited to 'util-linux/fdflush.c')
-rw-r--r-- | util-linux/fdflush.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c index c3fcf3325..f3afea320 100644 --- a/util-linux/fdflush.c +++ b/util-linux/fdflush.c | |||
@@ -35,15 +35,15 @@ extern int fdflush_main(int argc, char **argv) | |||
35 | { | 35 | { |
36 | int fd, result; | 36 | int fd, result; |
37 | 37 | ||
38 | if (argc <= 1) | 38 | if (argc != 2) |
39 | bb_show_usage(); | 39 | bb_show_usage(); |
40 | 40 | ||
41 | fd = bb_xopen(argv[1], 0); | 41 | fd = bb_xopen(argv[1], 0); |
42 | 42 | ||
43 | result = ioctl(fd, FDFLUSH, 0); | 43 | result = ioctl(fd, FDFLUSH, 0); |
44 | #ifdef CONFIG_FEATURE_CLEAN_UP | 44 | |
45 | close(fd); | 45 | if (ENABLE_FEATURE_CLEAN_UP) close(fd); |
46 | #endif | 46 | |
47 | if (result) { | 47 | if (result) { |
48 | bb_perror_nomsg_and_die(); | 48 | bb_perror_nomsg_and_die(); |
49 | } | 49 | } |