Date: Wed, 9 Apr 1997 01:21:07 -0700 (PDT) From: graphix@iastate.edu To: freebsd-gnats-submit@freebsd.org Subject: bin/3238: style.9 compares return of getopt() to EOF Message-ID: <199704090821.BAA05436@freefall.freebsd.org> Resent-Message-ID: <199704090830.BAA05676@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 3238
>Category: bin
>Synopsis: style.9 compares return of getopt() to EOF
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Apr 9 01:30:02 PDT 1997
>Last-Modified:
>Originator: Kent Vander Velden
>Organization:
ISU
>Release: FreeBSD-current
>Environment:
FreeBSD pseudo.cc.iastate.edu 3.0-CURRENT FreeBSD 3.0-CURRENT #0: Sun Mar 23 13:13:22 CST 1997 kent@pseudo.cc.iastate.edu:/usr/src/sys/compile/PSEUDO i386
>Description:
style.9 compares return of getopt() to EOF
>How-To-Repeat:
>Fix:
One line edit...
man9|Wed4:20am} cvs diff -c
cvs diff: Diffing .
Index: style.9
===================================================================
RCS file: /jaz/FreeBSD-CVS/src/share/man/man9/style.9,v
retrieving revision 1.16
diff -c -r1.16 style.9
*** style.9 1997/03/21 20:14:15 1.16
--- style.9 1997/04/09 09:15:48
***************
*** 188,194 ****
should be checked for accuracy. Code that cannot be reached should
have a NOTREACHED comment.
.Bd -literal -offset 0i
! while ((ch = getopt(argc, argv, "abn")) != EOF)
switch (ch) { /* Indent the switch. */
case 'a': /* Don't indent the case. */
aflag = 1;
--- 188,194 ----
should be checked for accuracy. Code that cannot be reached should
have a NOTREACHED comment.
.Bd -literal -offset 0i
! while ((ch = getopt(argc, argv, "abn")) != -1)
switch (ch) { /* Indent the switch. */
case 'a': /* Don't indent the case. */
aflag = 1;
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704090821.BAA05436>
