X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fslocal.c;h=a7283bf8f5e702fa05d2d53edc6f11dac128390e;hb=a47dfadde7d7df81cd47856379957866ae88986b;hp=80620a7a95f52878a9eebfad79d09148402d776b;hpb=b15f35a73878825d1824a710982d6769ece9b6cb;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"); } }