diff options
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ncplogin/ncplogin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ncplogin/ncplogin.c b/usr.bin/ncplogin/ncplogin.c index 16e5268..05b95c1 100644 --- a/usr.bin/ncplogin/ncplogin.c +++ b/usr.bin/ncplogin/ncplogin.c @@ -110,7 +110,7 @@ logout(int argc, char *argv[], struct ncp_conn_loginfo *li) { int error = 0, connid, opt; connid = -1; - while ((opt = getopt(argc, argv, STDPARAM_OPT"c:")) != EOF){ + while ((opt = getopt(argc, argv, STDPARAM_OPT"c:")) != -1){ switch (opt) { case 'c': connid = atoi(optarg); |