X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=a7283bf8f5e702fa05d2d53edc6f11dac128390e;hb=80bf776d0a4587c477bb8a248b9dbe1a31e74575;hp=cc3c8727c15dca04bed8015623939d072b45e565;hpb=6fd2bf57267d5399994a4a4c4555c5197d50ce82;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index cc3c872..a7283bf 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -222,13 +222,12 @@ main (int argc, char **argv) adios (NULL, "-%s unknown", cp); case HELPSW: - snprintf (buf, sizeof(buf), - "%s [switches] [address info sender]", invo_name); + snprintf (buf, sizeof(buf), "%s [switches]", invo_name); print_help (buf, switches, 0); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case ADDRSW: if (!(addr = *argp++))/* allow -xyz arguments */ @@ -284,20 +283,8 @@ main (int argc, char **argv) debug++; continue; } - } - - switch (argp - (argv + 1)) { - case 1: - addr = cp; - break; - - case 2: - info = cp; - break; - - case 3: - sender = cp; - break; + } else { + adios (NULL, "only switch arguments are supported"); } }