From: hackbard Date: Fri, 14 May 2004 17:27:04 +0000 (+0000) Subject: fixed -h and wrong argv returns X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44d1396bcdd42a518855981fc8aa0b0fbc665231;p=my-code%2Fivac.git fixed -h and wrong argv returns --- diff --git a/src/ivac.c b/src/ivac.c index 49fc97d..e3e2060 100644 --- a/src/ivac.c +++ b/src/ivac.c @@ -58,7 +58,7 @@ int main(int argc,char **argv) { switch(argv[i][1]) { case 'h': usage(); - break; + return SUCCESS; case 'n': strncpy(ivac.username,argv[++i],CHAR_USERNAME); break; @@ -67,7 +67,7 @@ int main(int argc,char **argv) { break; default: usage(); - break; + return ERROR; } } else usage();