X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=a7283bf8f5e702fa05d2d53edc6f11dac128390e;hb=7fd676d57355fd26c1127a79d9ba805973928316;hp=80620a7a95f52878a9eebfad79d09148402d776b;hpb=cff8de7654cf393a494b01a587bd4d503d15a5e3;p=mmh diff --git a/uip/slocal.c b/uip/slocal.c index 80620a7..a7283bf 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -222,8 +222,7 @@ 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 (0); case VERSIONSW: @@ -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"); } }