diff options
author | Rob Landley <rob@landley.net> | 2005-09-11 01:05:30 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-09-11 01:05:30 +0000 |
commit | b7128c6236ac9b4d5d69ad95d509498f38df0dd6 (patch) | |
tree | 0358a910b954c6c7fdcaddf389693a0c2e96ef70 /debianutils | |
parent | db289b258de53bdcea7d671f854aafbb490321df (diff) | |
download | busybox-w32-b7128c6236ac9b4d5d69ad95d509498f38df0dd6.tar.gz busybox-w32-b7128c6236ac9b4d5d69ad95d509498f38df0dd6.tar.bz2 busybox-w32-b7128c6236ac9b4d5d69ad95d509498f38df0dd6.zip |
Cleanup patch by Bernhard Fischer, removing unnecessary includes of
getopt.h, whitespace changes, typos, etc.
Diffstat (limited to 'debianutils')
-rw-r--r-- | debianutils/readlink.c | 7 | ||||
-rw-r--r-- | debianutils/start_stop_daemon.c | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/debianutils/readlink.c b/debianutils/readlink.c index 90927bb74..dd5612052 100644 --- a/debianutils/readlink.c +++ b/debianutils/readlink.c | |||
@@ -43,8 +43,6 @@ int readlink_main(int argc, char **argv) | |||
43 | RESERVE_CONFIG_BUFFER(resolved_path, PATH_MAX); | 43 | RESERVE_CONFIG_BUFFER(resolved_path, PATH_MAX); |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | /* no options, no getopt */ | ||
47 | |||
48 | if (optind + 1 != argc) | 46 | if (optind + 1 != argc) |
49 | bb_show_usage(); | 47 | bb_show_usage(); |
50 | 48 | ||
@@ -58,9 +56,8 @@ int readlink_main(int argc, char **argv) | |||
58 | if (!buf) | 56 | if (!buf) |
59 | return EXIT_FAILURE; | 57 | return EXIT_FAILURE; |
60 | puts(buf); | 58 | puts(buf); |
61 | #ifdef CONFIG_FEATURE_CLEAN_UP | 59 | |
62 | free(buf); | 60 | if (ENABLE_FEATURE_CLEAN_UP) free(buf); |
63 | #endif | ||
64 | 61 | ||
65 | return EXIT_SUCCESS; | 62 | return EXIT_SUCCESS; |
66 | } | 63 | } |
diff --git a/debianutils/start_stop_daemon.c b/debianutils/start_stop_daemon.c index 4fce80dbb..b1ebe2fa7 100644 --- a/debianutils/start_stop_daemon.c +++ b/debianutils/start_stop_daemon.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <sys/stat.h> | 16 | #include <sys/stat.h> |
17 | #include <dirent.h> | 17 | #include <dirent.h> |
18 | #include <unistd.h> | 18 | #include <unistd.h> |
19 | #include <getopt.h> | 19 | #include <getopt.h> /* struct option */ |
20 | 20 | ||
21 | #include "busybox.h" | 21 | #include "busybox.h" |
22 | #include "pwd_.h" | 22 | #include "pwd_.h" |