summaryrefslogtreecommitdiffstats
path: root/sbin/slattach/slattach.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1997-03-29 03:33:12 +0000
committerimp <imp@FreeBSD.org>1997-03-29 03:33:12 +0000
commit167db5291223948e17d74470feff53f15777fcaf (patch)
tree01c0debb3ff124595890fe1408caea5024debc1f /sbin/slattach/slattach.c
parentacc1b708c198fcaff62c716caea359a1cc7eb9d0 (diff)
downloadFreeBSD-src-167db5291223948e17d74470feff53f15777fcaf.zip
FreeBSD-src-167db5291223948e17d74470feff53f15777fcaf.tar.gz
compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
Diffstat (limited to 'sbin/slattach/slattach.c')
-rw-r--r--sbin/slattach/slattach.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/slattach/slattach.c b/sbin/slattach/slattach.c
index 39bd3a6..ab38ffb 100644
--- a/sbin/slattach/slattach.c
+++ b/sbin/slattach/slattach.c
@@ -42,7 +42,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)slattach.c 4.6 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id$";
+static char rcsid[] = "$Id: slattach.c,v 1.25 1997/02/22 14:33:19 peter Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -132,7 +132,7 @@ int main(int argc, char **argv)
extern char *optarg;
extern int optind;
- while ((option = getopt(argc, argv, "ace:fhlnr:s:u:zLK:O:S:")) != EOF) {
+ while ((option = getopt(argc, argv, "ace:fhlnr:s:u:zLK:O:S:")) != -1) {
switch (option) {
case 'a':
slflags |= IFF_LINK2;
OpenPOWER on IntegriCloud