From nobody Wed Apr 9 01:21:07 1997 Received: (from nobody@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA05436; Wed, 9 Apr 1997 01:21:07 -0700 (PDT) Message-Id: <199704090821.BAA05436@freefall.freebsd.org> Date: Wed, 9 Apr 1997 01:21:07 -0700 (PDT) From: graphix@iastate.edu To: freebsd-gnats-submit@freebsd.org Subject: style.9 compares return of getopt() to EOF X-Send-Pr-Version: www-1.0 >Number: 3238 >Category: bin >Synopsis: style.9 compares return of getopt() to EOF >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 9 01:30:02 PDT 1997 >Closed-Date: Wed Apr 9 12:03:23 PDT 1997 >Last-Modified: Wed Apr 9 12:03:44 PDT 1997 >Originator: Kent Vander Velden >Release: FreeBSD-current >Organization: ISU >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; >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: mpp State-Changed-When: Wed Apr 9 12:03:23 PDT 1997 State-Changed-Why: Suggested fix applied, thanks! >Unformatted: