projects
/
my-code
/
ivac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dce17a6
)
fixed -h and wrong argv returns
author
hackbard
<hackbard>
Fri, 14 May 2004 17:27:04 +0000
(17:27 +0000)
committer
hackbard
<hackbard>
Fri, 14 May 2004 17:27:04 +0000
(17:27 +0000)
src/ivac.c
patch
|
blob
|
history
diff --git
a/src/ivac.c
b/src/ivac.c
index
49fc97d
..
e3e2060
100644
(file)
--- 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();