From 9531af194e3d30d1d195cd6cee8ddf4e13f5e668 Mon Sep 17 00:00:00 2001 From: Mike Pechkin Date: Wed, 24 Oct 2001 13:06:37 +0000 Subject: getopt(3) returns -1 when out of args, not EOF. millert@ ok --- usr.bin/infocmp/infocmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/infocmp/infocmp.c b/usr.bin/infocmp/infocmp.c index 93c1f055073..91a1b6181db 100644 --- a/usr.bin/infocmp/infocmp.c +++ b/usr.bin/infocmp/infocmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: infocmp.c,v 1.13 2001/02/28 22:58:52 millert Exp $ */ +/* $OpenBSD: infocmp.c,v 1.14 2001/10/24 13:06:36 mpech Exp $ */ /**************************************************************************** * Copyright (c) 1998,1999,2000 Free Software Foundation, Inc. * @@ -1135,7 +1135,7 @@ main(int argc, char *argv[]) /* where is the terminfo database location going to default to? */ restdir = firstdir = 0; - while ((c = getopt(argc, argv, "adeEcCfFGgIinlLpqrR:s:uv:Vw:A:B:1T")) != EOF) + while ((c = getopt(argc, argv, "adeEcCfFGgIinlLpqrR:s:uv:Vw:A:B:1T")) != -1) switch (c) { #if NCURSES_XNAMES case 'a': -- cgit v1.2.3