Cleanup patch by Bernhard Fischer, removing unnecessary includes of
getopt.h, whitespace changes, typos, etc.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user