]> hackdaworld.org Git - my-code/ivac.git/commitdiff
fixed -h and wrong argv returns
authorhackbard <hackbard>
Fri, 14 May 2004 17:27:04 +0000 (17:27 +0000)
committerhackbard <hackbard>
Fri, 14 May 2004 17:27:04 +0000 (17:27 +0000)
src/ivac.c

index 49fc97d1b262104e5ffbe8ec8f1eecc877c6071a..e3e206013aee7ba74ef556cb7ec53bbf1df44418 100644 (file)
@@ -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();