summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-04-09 19:03:14 +0000
committermpp <mpp@FreeBSD.org>1997-04-09 19:03:14 +0000
commit9bbed0ec574d078dfdf988be1539aee18c8c7ac6 (patch)
tree509266b00ab86c883a2c14e74ec3dfe2d817757c
parent744407e228984a12bf81bff539b2a7c6bd781339 (diff)
downloadFreeBSD-src-9bbed0ec574d078dfdf988be1539aee18c8c7ac6.zip
FreeBSD-src-9bbed0ec574d078dfdf988be1539aee18c8c7ac6.tar.gz
Check for -1 instead of EOF in the getopt() example.
Submitted by: Kent Vander Velden
-rw-r--r--share/man/man9/style.96
1 files changed, 3 insertions, 3 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index 5647f97..bd0b8c5 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: style.9,v 1.15 1997/02/22 13:26:28 peter Exp $
+.\" $Id: style.9,v 1.16 1997/03/21 20:14:15 mpp Exp $
.\"
.Dd December 14, 1995
.Dt STYLE 9
@@ -41,7 +41,7 @@ source tree.
*
* @(#)style 1.14 (Berkeley) 4/28/95
*
- * $Id: style.9,v 1.15 1997/02/22 13:26:28 peter Exp $
+ * $Id: style.9,v 1.16 1997/03/21 20:14:15 mpp Exp $
*
*/
@@ -188,7 +188,7 @@ cascade should have a FALLTHROUGH comment. Numerical arguments
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)
+ while ((ch = getopt(argc, argv, "abn")) != -1)
switch (ch) { /* Indent the switch. */
case 'a': /* Don't indent the case. */
aflag = 1;
OpenPOWER on IntegriCloud