diff options
author | imp <imp@FreeBSD.org> | 1999-05-23 23:24:26 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-05-23 23:24:26 +0000 |
commit | 3aec1640dfcf063d1ba62f7dcbb14a1c363fd828 (patch) | |
tree | 0eeef0425d26795141407f0b4a7f4cb649cef243 /usr.sbin/mptable/mptable.c | |
parent | d0b3d805b48cc5180d9275494e354b7ddee74cde (diff) | |
download | FreeBSD-src-3aec1640dfcf063d1ba62f7dcbb14a1c363fd828.zip FreeBSD-src-3aec1640dfcf063d1ba62f7dcbb14a1c363fd828.tar.gz |
getopt(3) returns -1 not EOF.
Diffstat (limited to 'usr.sbin/mptable/mptable.c')
-rw-r--r-- | usr.sbin/mptable/mptable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mptable/mptable.c b/usr.sbin/mptable/mptable.c index 9c79aa2..c7c0de8 100644 --- a/usr.sbin/mptable/mptable.c +++ b/usr.sbin/mptable/mptable.c @@ -29,7 +29,7 @@ #ifndef lint static const char rcsid[] = - "$Id: mptable.c,v 1.9 1997/09/25 06:47:33 charnier Exp $"; + "$Id: mptable.c,v 1.10 1998/02/24 01:11:47 bde Exp $"; #endif /* not lint */ #define VMAJOR 2 @@ -321,7 +321,7 @@ main( int argc, char *argv[] ) printf( "MPTable, version %d.%d.%d\n", VMAJOR, VMINOR, VDELTA ); - while ((ch = getopt(argc, argv, "d:g:h:v:")) != EOF) { + while ((ch = getopt(argc, argv, "d:g:h:v:")) != -1) { switch(ch) { case 'd': if ( strcmp( optarg, "mesg") == 0 ) |