From a21108babf7ab385444fc69d77e0363d16b20529 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 30 Oct 2011 16:03:19 +0100 Subject: tunelp: add long options and align with howto-usage-function.txt Signed-off-by: Sami Kerola --- sys-utils/tunelp.c | 65 ++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 48 insertions(+), 17 deletions(-) (limited to 'sys-utils/tunelp.c') diff --git a/sys-utils/tunelp.c b/sys-utils/tunelp.c index 82cbe588a..f59c6dd48 100644 --- a/sys-utils/tunelp.c +++ b/sys-utils/tunelp.c @@ -51,6 +51,7 @@ #include #include +#include #include #include #include @@ -73,18 +74,32 @@ struct command { struct command *next; }; -static void print_usage(char *progname) +static void __attribute__((__noreturn__)) print_usage(FILE *out) { - printf(_ - ("Usage: %s [ -i | -t