From 0abad3ad5cf467649ebc05a190cc34a7616fa271 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 16 Apr 2003 14:31:10 +0000 Subject: Check whether return status of poptGetNextOpt is -1, not EOF (This used to be commit 1fefb776eec94efc7ea1b760dc4b80f61d61a158) --- source3/utils/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/utils/status.c') 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)); -- cgit