fix up .Nm usage, getopt returns -1 not EOF
This commit is contained in:
parent
6d1c625f54
commit
1519255e3b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.2 1997/09/26 21:08:05 phil Exp $ */
|
||||
/* $NetBSD: main.c,v 1.3 1997/10/19 05:08:17 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997 Piermont Information Systems Inc.
|
||||
|
@ -55,7 +55,7 @@ main (int argc, char **argv)
|
|||
prog_name = argv[0];
|
||||
|
||||
/* Process the arguments. */
|
||||
while ( (ch = getopt (argc, argv, "o:")) != EOF ) {
|
||||
while ( (ch = getopt (argc, argv, "o:")) != -1 ) {
|
||||
switch (ch) {
|
||||
case 'o': /* output file name */
|
||||
out_name = optarg;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: menuc.1,v 1.1.1.1 1997/09/26 17:54:09 phil Exp $
|
||||
.\" $NetBSD: menuc.1,v 1.2 1997/10/19 05:08:20 lukem Exp $
|
||||
.\"
|
||||
.\" Copyright 1997 Piermont Information Systems Inc.
|
||||
.\" All rights reserved.
|
||||
|
@ -49,7 +49,7 @@ menus, their options, and how to process the options is given to
|
|||
.Nm
|
||||
and produces both a .c and a .h file that implement the menu system.
|
||||
The standard root name of the files is
|
||||
.Nm menu_defs .
|
||||
.Pa menu_defs .
|
||||
The
|
||||
.Fl o Ar name
|
||||
can be used to specify a different root name.
|
||||
|
@ -62,4 +62,3 @@ This manual page should be much longer.
|
|||
Philip A. Nelson for Piermont Information Systems Inc. Initial ideas
|
||||
for this were developed and implemented in Pascal at the Leiden University,
|
||||
Netherlands, in the summer of 1980.
|
||||
|
||||
|
|
Loading…
Reference in New Issue