From 44d1396bcdd42a518855981fc8aa0b0fbc665231 Mon Sep 17 00:00:00 2001 From: hackbard Date: Fri, 14 May 2004 17:27:04 +0000 Subject: [PATCH] fixed -h and wrong argv returns --- src/ivac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2