diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-04-16 14:24:45 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-04-16 14:24:45 +0000 |
commit | 8213a4dc2e971fc63b934b87873b272014f4931d (patch) | |
tree | 491a790febdf63b835527a55941e15ac8d6a5e68 /source3/utils/status.c | |
parent | 8a98adf7dd4c9e7b30ad4f5301e33f7d01df097a (diff) | |
download | samba-8213a4dc2e971fc63b934b87873b272014f4931d.tar.gz samba-8213a4dc2e971fc63b934b87873b272014f4931d.tar.bz2 samba-8213a4dc2e971fc63b934b87873b272014f4931d.zip |
Check for -1 not EOF as return value of poptGetNextOpt
(This used to be commit 84fba11ff0a649932e1f812408017ae4c5611083)
Diffstat (limited to 'source3/utils/status.c')
-rw-r--r-- | source3/utils/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index 7e87701752..bbaeecdd6b 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -575,7 +575,7 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo pc = poptGetContext(NULL, argc, (const char **) argv, long_options, POPT_CONTEXT_KEEP_FIRST); - while ((c = poptGetNextOpt(pc)) != EOF) { + while ((c = poptGetNextOpt(pc)) != -1) { switch (c) { case 'u': Ucrit_addUsername(poptGetOptArg(pc)); |