diff options
author | Eric Jackson <ericj@cvs.openbsd.org> | 2000-01-12 19:54:48 +0000 |
---|---|---|
committer | Eric Jackson <ericj@cvs.openbsd.org> | 2000-01-12 19:54:48 +0000 |
commit | b3c5deb047476f92e27febb23a6f4c573b80a86b (patch) | |
tree | 8950505361af8a74da8cdc38afc0684ccddb87c0 /kerberosIV/kpropd | |
parent | 7ae81f86534b09592f62ed5aa560ca911fb1f2fb (diff) |
evaluate getopt() against != -1.. no >= 0.
Diffstat (limited to 'kerberosIV/kpropd')
-rw-r--r-- | kerberosIV/kpropd/kpropd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kerberosIV/kpropd/kpropd.c b/kerberosIV/kpropd/kpropd.c index fdc48f64ce6..eee0f4e23bd 100644 --- a/kerberosIV/kpropd/kpropd.c +++ b/kerberosIV/kpropd/kpropd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kpropd.c,v 1.7 1998/11/28 23:41:02 art Exp $ */ +/* $OpenBSD: kpropd.c,v 1.8 2000/01/12 19:54:47 ericj Exp $ */ /* $KTH: kpropd.c,v 2.24 1997/12/05 01:34:57 assar Exp $ */ /* @@ -305,7 +305,7 @@ main(int argc, char **argv) krb_get_lrealm(realm, 1); - while((opt = getopt(argc, argv, ":d:l:mp:P:r:s:i")) >= 0){ + while((opt = getopt(argc, argv, ":d:l:mp:P:r:s:i")) != -1){ switch(opt){ case 'd': database = optarg; |