summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/status.c2
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));