diff options
author | Rob Landley <rob@landley.net> | 2005-09-11 05:05:30 +0400 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-09-11 05:05:30 +0400 |
commit | b7128c6236ac9b4d5d69ad95d509498f38df0dd6 (patch) | |
tree | 0358a910b954c6c7fdcaddf389693a0c2e96ef70 /debianutils | |
parent | db289b258de53bdcea7d671f854aafbb490321df (diff) |
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) RESERVE_CONFIG_BUFFER(resolved_path, PATH_MAX); #endif - /* no options, no getopt */ - if (optind + 1 != argc) bb_show_usage(); @@ -58,9 +56,8 @@ int readlink_main(int argc, char **argv) if (!buf) return EXIT_FAILURE; puts(buf); -#ifdef CONFIG_FEATURE_CLEAN_UP - free(buf); -#endif + + if (ENABLE_FEATURE_CLEAN_UP) free(buf); return EXIT_SUCCESS; } 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 @@ #include <sys/stat.h> #include <dirent.h> #include <unistd.h> -#include <getopt.h> +#include <getopt.h> /* struct option */ #include "busybox.h" #include "pwd_.h" |