diff options
author | Warner Losh <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 1997-03-31 05:11:47 +0000 |
commit | 6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc (patch) | |
tree | 9dcc58d3fb5e1644413565971c98196650ef87d3 /usr.sbin/bootparamd | |
parent | 44ee97a91b095311b8703857d54df336354236a0 (diff) | |
download | src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.tar.gz src-6c3f552a31dd0a0c8c59a028fd9bc507d43ec5cc.zip |
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Notes
Notes:
svn path=/head/; revision=24428
Diffstat (limited to 'usr.sbin/bootparamd')
-rw-r--r-- | usr.sbin/bootparamd/bootparamd/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bootparamd/bootparamd/main.c b/usr.sbin/bootparamd/bootparamd/main.c index cef4923a39e3..77bb76d367ad 100644 --- a/usr.sbin/bootparamd/bootparamd/main.c +++ b/usr.sbin/bootparamd/bootparamd/main.c @@ -6,7 +6,7 @@ use and modify. Please send modifications and/or suggestions + bug fixes to Klas Heggemann <klas@nada.kth.se> - $Id$ + $Id: main.c,v 1.5 1997/02/22 16:04:24 peter Exp $ */ @@ -49,7 +49,7 @@ char **argv; if ( progname ) progname++; else progname = argv[0]; - while ((c = getopt(argc, argv,"dsr:f:")) != EOF) + while ((c = getopt(argc, argv,"dsr:f:")) != -1) switch (c) { case 'd': debug = 1; |