remove superfluous '-' in getopt string
This commit is contained in:
parent
5cba30bd7e
commit
0895d2339e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: calendar.c,v 1.18 1998/11/06 22:56:38 christos Exp $ */
|
||||
/* $NetBSD: calendar.c,v 1.19 1999/11/02 10:52:49 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)calendar.c 8.4 (Berkeley) 1/7/95";
|
||||
#endif
|
||||
__RCSID("$NetBSD: calendar.c,v 1.18 1998/11/06 22:56:38 christos Exp $");
|
||||
__RCSID("$NetBSD: calendar.c,v 1.19 1999/11/02 10:52:49 lukem Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -102,7 +102,7 @@ main(argc, argv)
|
|||
int ch;
|
||||
const char *caldir;
|
||||
|
||||
while ((ch = getopt(argc, argv, "-ad:f:l:w:")) != -1)
|
||||
while ((ch = getopt(argc, argv, "ad:f:l:w:")) != -1)
|
||||
switch (ch) {
|
||||
case '-': /* backward contemptible */
|
||||
case 'a':
|
||||
|
|
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993, 1994\n\
|
|||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "@(#)env.c 8.3 (Berkeley) 4/2/94";*/
|
||||
__RCSID("$NetBSD: env.c,v 1.10 1997/10/18 13:55:28 lukem Exp $");
|
||||
__RCSID("$NetBSD: env.c,v 1.11 1999/11/02 10:53:17 lukem Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <err.h>
|
||||
|
@ -66,7 +66,7 @@ main(argc, argv)
|
|||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
while ((ch = getopt(argc, argv, "-i")) != -1)
|
||||
while ((ch = getopt(argc, argv, "i")) != -1)
|
||||
switch((char)ch) {
|
||||
case '-': /* obsolete */
|
||||
case 'i':
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: man.c,v 1.19 1999/07/22 15:09:45 kleink Exp $ */
|
||||
/* $NetBSD: man.c,v 1.20 1999/11/02 10:53:42 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993, 1994, 1995
|
||||
|
@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993, 1994, 1995\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)man.c 8.17 (Berkeley) 1/31/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: man.c,v 1.19 1999/07/22 15:09:45 kleink Exp $");
|
||||
__RCSID("$NetBSD: man.c,v 1.20 1999/11/02 10:53:42 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -102,7 +102,7 @@ main(argc, argv)
|
|||
|
||||
f_cat = f_how = 0;
|
||||
conffile = p_add = p_path = NULL;
|
||||
while ((ch = getopt(argc, argv, "-aC:cfhkM:m:P:w")) != -1)
|
||||
while ((ch = getopt(argc, argv, "aC:cfhkM:m:P:w")) != -1)
|
||||
switch (ch) {
|
||||
case 'a':
|
||||
f_all = 1;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: split.c,v 1.6 1997/10/19 23:26:58 lukem Exp $ */
|
||||
/* $NetBSD: split.c,v 1.7 1999/11/02 10:53:59 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993, 1994
|
||||
|
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)split.c 8.3 (Berkeley) 4/25/94";
|
||||
#endif
|
||||
__RCSID("$NetBSD: split.c,v 1.6 1997/10/19 23:26:58 lukem Exp $");
|
||||
__RCSID("$NetBSD: split.c,v 1.7 1999/11/02 10:53:59 lukem Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -79,7 +79,7 @@ main(argc, argv)
|
|||
int ch;
|
||||
char *ep, *p;
|
||||
|
||||
while ((ch = getopt(argc, argv, "-0123456789b:l:")) != -1)
|
||||
while ((ch = getopt(argc, argv, "0123456789b:l:")) != -1)
|
||||
switch (ch) {
|
||||
case '0': case '1': case '2': case '3': case '4':
|
||||
case '5': case '6': case '7': case '8': case '9':
|
||||
|
|
Loading…
Reference in New Issue