summaryrefslogtreecommitdiff
path: root/networking/udhcp/dumpleases.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2006-08-18 17:22:23 +0000
committerBernhard Reutner-Fischer2006-08-18 17:22:23 +0000
commit5bd2a4b6ceb253ddb95a4940262c75b71f130d04 (patch)
treeb0cfcdb9a8d3f7b672609b97be2a2147f8ba433d /networking/udhcp/dumpleases.c
parent4470b74e29f98ffdd39acf8085e5b7cd0758edaa (diff)
downloadbusybox-5bd2a4b6ceb253ddb95a4940262c75b71f130d04.zip
busybox-5bd2a4b6ceb253ddb95a4940262c75b71f130d04.tar.gz
- remove last reminiscents of IN_BUSYBOX
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();
}
}