=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/head/head.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- src/usr.bin/head/head.c 1996/06/26 05:34:15 1.2 +++ src/usr.bin/head/head.c 1997/01/15 23:42:33 1.3 @@ -1,4 +1,4 @@ -/* $OpenBSD: head.c,v 1.2 1996/06/26 05:34:15 deraadt Exp $ */ +/* $OpenBSD: head.c,v 1.3 1997/01/15 23:42:33 millert Exp $ */ /* * Copyright (c) 1980, 1987 Regents of the University of California. @@ -41,7 +41,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)head.c 5.5 (Berkeley) 6/1/90";*/ -static char rcsid[] = "$OpenBSD: head.c,v 1.2 1996/06/26 05:34:15 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: head.c,v 1.3 1997/01/15 23:42:33 millert Exp $"; #endif /* not lint */ #include @@ -73,7 +73,7 @@ argc--; argv++; } - while ((ch = getopt (argc, argv, "n:")) != EOF) + while ((ch = getopt (argc, argv, "n:")) != -1) switch (ch) { case 'n': if ((linecnt = atoi(optarg)) < 0)