/* vi: set sw=4 ts=4: */
/*
- Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
+ * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
*/
#include <fcntl.h>
#include <string.h>
#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 remaing\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;
file = optarg;
break;
default:
- show_usage();
+ bb_show_usage();
}
}