From owner-freebsd-bugs Wed Apr 9 01:30:06 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA05685 for bugs-outgoing; Wed, 9 Apr 1997 01:30:06 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA05676; Wed, 9 Apr 1997 01:30:03 -0700 (PDT) Resent-Date: Wed, 9 Apr 1997 01:30:03 -0700 (PDT) Resent-Message-Id: <199704090830.BAA05676@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, Received:(from nobody@localhost) by.freefall.freebsd.org.id.BAA05436;Wed; (8.8.5/8.8.5);, 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 X-Send-Pr-Version: www-1.0 Subject: bin/3238: style.9 compares return of getopt() to EOF Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: