git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix static expressions in conditionals
[openafs.git]
/
src
/
vlserver
/
vlclient.c
diff --git
a/src/vlserver/vlclient.c
b/src/vlserver/vlclient.c
index
e22af50
..
8c5044c
100644
(file)
--- a/
src/vlserver/vlclient.c
+++ b/
src/vlserver/vlclient.c
@@
-687,7
+687,7
@@
handleit(struct cmd_syndesc *as, void *arock)
sscanf(&(*argp)[0], "%d", &id);
++argp, --nargs;
sscanf(&(*argp)[0], "%d", &voltype);
- if (voltype < 0 && voltype > 2) {
+ if (voltype < 0 || voltype > 2) {
printf("Illegal voltype; must be 0, 1 or 2\n");
continue;
}