summaryrefslogtreecommitdiff
path: root/networking/udhcp/dumpleases.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/dumpleases.c')
-rw-r--r--networking/udhcp/dumpleases.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c
index 08a22f1..60e6b7e 100644
--- a/networking/udhcp/dumpleases.c
+++ b/networking/udhcp/dumpleases.c
@@ -23,27 +23,7 @@
#define REMAINING 0
#define ABSOLUTE 1
-
-#ifndef IN_BUSYBOX
-static void ATTRIBUTE_NORETURN show_usage(void)
-{
- printf(
-"Usage: dumpleases -f <file> -[r|a]\n\n"
-" -f, --file=FILENAME Leases file to load\n"
-" -r, --remaining Interepret lease times as time remaining\n"
-" -a, --absolute Interepret lease times as expire time\n");
- exit(0);
-}
-#else
-#define show_usage bb_show_usage
-#endif
-
-
-#ifdef IN_BUSYBOX
int dumpleases_main(int argc, char *argv[])
-#else
-int main(int argc, char *argv[])
-#endif
{
FILE *fp;
int i, c, mode = REMAINING;
@@ -71,7 +51,7 @@ int main(int argc, char *argv[])
file = optarg;
break;
default:
- show_usage();
+ bb_show_usage();
}
}