summaryrefslogtreecommitdiff
path: root/debianutils/readlink.c
diff options
context:
space:
mode:
authorRob Landley2005-09-11 01:05:30 +0000
committerRob Landley2005-09-11 01:05:30 +0000
commitb7128c6236ac9b4d5d69ad95d509498f38df0dd6 (patch)
tree0358a910b954c6c7fdcaddf389693a0c2e96ef70 /debianutils/readlink.c
parentdb289b258de53bdcea7d671f854aafbb490321df (diff)
downloadbusybox-b7128c6236ac9b4d5d69ad95d509498f38df0dd6.zip
busybox-b7128c6236ac9b4d5d69ad95d509498f38df0dd6.tar.gz
Cleanup patch by Bernhard Fischer, removing unnecessary includes of
getopt.h, whitespace changes, typos, etc.
Diffstat (limited to 'debianutils/readlink.c')
-rw-r--r--debianutils/readlink.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/debianutils/readlink.c b/debianutils/readlink.c
index 90927bb..dd56120 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;
}