Remove option letter from getopt string, since it does not
have a case handler below. From aaron@openbsd.
This commit is contained in:
parent
15a5f3876a
commit
0a1db66278
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.17 2004/04/21 01:05:33 christos Exp $ */
|
||||
/* $NetBSD: main.c,v 1.18 2004/05/13 00:18:46 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1986, 1993
|
||||
|
@ -68,7 +68,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1986, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/23/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.17 2004/04/21 01:05:33 christos Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.18 2004/05/13 00:18:46 wiz Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -108,7 +108,7 @@ main(argc, argv)
|
|||
|
||||
sync();
|
||||
skipclean = 1;
|
||||
while ((ch = getopt(argc, argv, "b:c:dfm:npqy")) != -1) {
|
||||
while ((ch = getopt(argc, argv, "b:dfm:npqy")) != -1) {
|
||||
switch (ch) {
|
||||
case 'b':
|
||||
skipclean = 0;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.36 2004/03/27 20:50:43 christos Exp $ */
|
||||
/* $NetBSD: main.c,v 1.37 2004/05/13 00:21:47 wiz Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1988, 1993
|
||||
|
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\n"
|
|||
"The Regents of the University of California."
|
||||
" All rights reserved.\n");
|
||||
#ifdef __NetBSD__
|
||||
__RCSID("$NetBSD: main.c,v 1.36 2004/03/27 20:50:43 christos Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.37 2004/05/13 00:21:47 wiz Exp $");
|
||||
#elif defined(__FreeBSD__)
|
||||
__RCSID("$FreeBSD$");
|
||||
#else
|
||||
|
@ -140,7 +140,7 @@ main(int argc,
|
|||
(void)gethostname(myname, sizeof(myname) - 1);
|
||||
(void)gethost(myname, &myaddr);
|
||||
|
||||
while ((n = getopt(argc, argv, "sqdghmpAtvT:F:P:")) != -1) {
|
||||
while ((n = getopt(argc, argv, "sqdghmAtvT:F:P:")) != -1) {
|
||||
switch (n) {
|
||||
case 's':
|
||||
supplier = 1;
|
||||
|
|
Loading…
Reference in New Issue