compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
This commit is contained in:
parent
44ee97a91b
commit
6c3f552a31
sbin/sysctl
usr.sbin
ac
accton
amd
apm
arp
bootparamd/bootparamd
chown
chroot
config
cron
crunch/crunchide
ctm/mkCTM
dev_mkdb
edquota
fdcontrol
inetd
iostat
kgmon
kvm_mkdb
lpr
mkdosfs
moused
mtree
newsyslog
pciconf
pcvt
cursor
demo
ispcvt
kcon
loadfont
mcon
scon
set2061
userkeys
pkg_install
portmap
pstat
pwd_mkdb
qcamcontrol
quotaon
rarpd
repquota
rndcontrol
rpc.yppasswdd
rpc.ypxfrd
sendmail
contrib
mail.local
mailstats
makemap
praliases
rmail
sysctl
syslogd
tcpdump/tcpslice
timed/timed
trpt
vipw
vnconfig
watch
wormcontrol
yp_mkdb
yppush
ypserv
zic
@ -85,7 +85,7 @@ main(argc, argv)
|
||||
char *path;
|
||||
int ch;
|
||||
|
||||
while ((ch = getopt(argc, argv, "Aan")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "Aan")) != -1) {
|
||||
switch (ch) {
|
||||
|
||||
case 'A':
|
||||
|
@ -40,7 +40,7 @@ static char copyright[] =
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "From: @(#)sysctl.c 8.1 (Berkeley) 6/6/93"; */
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: sysctl.c,v 1.12 1997/02/22 16:13:58 peter Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -85,7 +85,7 @@ main(int argc, char **argv)
|
||||
setbuf(stdout,0);
|
||||
setbuf(stderr,0);
|
||||
|
||||
while ((ch = getopt(argc, argv, "AabnwX")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "AabnwX")) != -1) {
|
||||
switch (ch) {
|
||||
case 'A': Aflag = 1; break;
|
||||
case 'a': aflag = 1; break;
|
||||
|
@ -14,7 +14,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id$";
|
||||
static char rcsid[] = "$Id: ac.c,v 1.6 1997/02/22 16:01:11 peter Exp $";
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -229,7 +229,7 @@ main(argc, argv)
|
||||
(void) setlocale(LC_TIME, "");
|
||||
|
||||
fp = NULL;
|
||||
while ((c = getopt(argc, argv, "Dc:dpt:w:")) != EOF) {
|
||||
while ((c = getopt(argc, argv, "Dc:dpt:w:")) != -1) {
|
||||
switch (c) {
|
||||
#ifdef DEBUG
|
||||
case 'D':
|
||||
|
@ -57,7 +57,7 @@ main(argc, argv)
|
||||
{
|
||||
int ch;
|
||||
|
||||
while ((ch = getopt(argc, argv, "")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "")) != -1)
|
||||
switch(ch) {
|
||||
case '?':
|
||||
default:
|
||||
|
@ -37,7 +37,7 @@
|
||||
*
|
||||
* @(#)get_args.c 8.1 (Berkeley) 6/6/93
|
||||
*
|
||||
* $Id$
|
||||
* $Id: get_args.c,v 1.3 1997/02/22 16:01:28 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -113,7 +113,7 @@ char *v[];
|
||||
char *logfile = 0;
|
||||
char *sub_domain = 0;
|
||||
|
||||
while ((opt_ch = getopt(c, v, "mnprva:c:d:h:k:l:t:w:x:y:C:D:")) != EOF)
|
||||
while ((opt_ch = getopt(c, v, "mnprva:c:d:h:k:l:t:w:x:y:C:D:")) != -1)
|
||||
switch (opt_ch) {
|
||||
case 'a':
|
||||
if (*optarg != '/') {
|
||||
|
@ -37,7 +37,7 @@
|
||||
*
|
||||
* @(#)amq.c 8.1 (Berkeley) 6/7/93
|
||||
*
|
||||
* $Id: amq.c,v 1.4 1997/02/22 16:02:07 peter Exp $
|
||||
* $Id: amq.c,v 1.5 1997/03/22 23:12:08 joerg Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -54,7 +54,7 @@ char copyright[] = "\
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: amq.c,v 1.4 1997/02/22 16:02:07 peter Exp $";
|
||||
static char rcsid[] = "$Id: amq.c,v 1.5 1997/03/22 23:12:08 joerg Exp $";
|
||||
static char sccsid[] = "@(#)amq.c 8.1 (Berkeley) 6/7/93";
|
||||
#endif /* not lint */
|
||||
|
||||
@ -310,7 +310,7 @@ char *argv[];
|
||||
/*
|
||||
* Parse arguments
|
||||
*/
|
||||
while ((opt_ch = getopt(argc, argv, "fh:l:msuvx:D:M:")) != EOF)
|
||||
while ((opt_ch = getopt(argc, argv, "fh:l:msuvx:D:M:")) != -1)
|
||||
switch (opt_ch) {
|
||||
case 'f':
|
||||
flush_flag = 1;
|
||||
|
@ -37,7 +37,7 @@
|
||||
*
|
||||
* @(#)fsinfo.c 8.1 (Berkeley) 6/6/93
|
||||
*
|
||||
* $Id$
|
||||
* $Id: fsinfo.c,v 1.3 1997/02/22 16:03:20 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -106,7 +106,7 @@ char *v[];
|
||||
if (!progname)
|
||||
progname = "fsinfo";
|
||||
|
||||
while ((ch = getopt(c, v, "a:b:d:e:f:h:m:D:U:I:qv")) != EOF)
|
||||
while ((ch = getopt(c, v, "a:b:d:e:f:h:m:D:U:I:qv")) != -1)
|
||||
switch (ch) {
|
||||
case 'a':
|
||||
autodir = optarg;
|
||||
|
@ -37,7 +37,7 @@
|
||||
*
|
||||
* @(#)mk-amd-map.c 8.1 (Berkeley) 6/28/93
|
||||
*
|
||||
* $Id$
|
||||
* $Id: mk-amd-map.c,v 1.3 1997/02/22 16:03:56 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -53,7 +53,7 @@ char copyright[] = "\
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id$";
|
||||
static char rcsid[] = "$Id: mk-amd-map.c,v 1.3 1997/02/22 16:03:56 peter Exp $";
|
||||
static char sccsid[] = "@(#)mk-amd-map.c 8.1 (Berkeley) 6/28/93";
|
||||
#endif /* not lint */
|
||||
|
||||
@ -249,7 +249,7 @@ char *argv[];
|
||||
int ch;
|
||||
extern int optind;
|
||||
|
||||
while ((ch = getopt(argc, argv, "p")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "p")) != -1)
|
||||
switch (ch) {
|
||||
case 'p':
|
||||
printit = 1;
|
||||
|
@ -120,7 +120,7 @@ main(int argc, char *argv[])
|
||||
all_info = 0;
|
||||
goto finish_option;
|
||||
}
|
||||
while ((c = getopt(argc, argv, "ablszd:")) != EOF) {
|
||||
while ((c = getopt(argc, argv, "ablszd:")) != -1) {
|
||||
switch (c) {
|
||||
case 'a':
|
||||
ac_status = 1;
|
||||
|
@ -42,7 +42,7 @@ static char const copyright[] =
|
||||
|
||||
#ifndef lint
|
||||
static char const sccsid[] = "@(#)from: arp.c 8.2 (Berkeley) 1/2/94";
|
||||
static char const freebsdid[] = "$Id$";
|
||||
static char const freebsdid[] = "$Id: arp.c,v 1.9 1997/02/22 16:04:19 peter Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -103,7 +103,7 @@ main(argc, argv)
|
||||
int ch;
|
||||
|
||||
pid = getpid();
|
||||
while ((ch = getopt(argc, argv, "andfsS")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "andfsS")) != -1)
|
||||
switch((char)ch) {
|
||||
case 'a':
|
||||
dump(0);
|
||||
|
@ -6,7 +6,7 @@ use and modify. Please send modifications and/or suggestions + bug fixes to
|
||||
Klas Heggemann <klas@nada.kth.se>
|
||||
|
||||
|
||||
$Id$
|
||||
$Id: main.c,v 1.5 1997/02/22 16:04:24 peter Exp $
|
||||
|
||||
*/
|
||||
|
||||
@ -49,7 +49,7 @@ char **argv;
|
||||
if ( progname ) progname++;
|
||||
else progname = argv[0];
|
||||
|
||||
while ((c = getopt(argc, argv,"dsr:f:")) != EOF)
|
||||
while ((c = getopt(argc, argv,"dsr:f:")) != -1)
|
||||
switch (c) {
|
||||
case 'd':
|
||||
debug = 1;
|
||||
|
@ -81,7 +81,7 @@ main(argc, argv)
|
||||
ischown = myname[2] == 'o';
|
||||
|
||||
Hflag = Lflag = Pflag = hflag = 0;
|
||||
while ((ch = getopt(argc, argv, "HLPRfh")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "HLPRfh")) != -1)
|
||||
switch (ch) {
|
||||
case 'H':
|
||||
Hflag = 1;
|
||||
|
@ -61,7 +61,7 @@ main(argc, argv)
|
||||
int ch;
|
||||
char *shell;
|
||||
|
||||
while ((ch = getopt(argc, argv, "")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "")) != -1)
|
||||
switch(ch) {
|
||||
case '?':
|
||||
default:
|
||||
|
@ -79,7 +79,7 @@ main(argc, argv)
|
||||
int ch;
|
||||
char *p;
|
||||
|
||||
while ((ch = getopt(argc, argv, "gpn")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "gpn")) != -1)
|
||||
switch (ch) {
|
||||
case 'g':
|
||||
debugging++;
|
||||
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
#if !defined(lint) && !defined(LINT)
|
||||
static char rcsid[] = "$Id$";
|
||||
static char rcsid[] = "$Id: cron.c,v 1.4 1997/02/22 16:04:40 peter Exp $";
|
||||
#endif
|
||||
|
||||
|
||||
@ -297,7 +297,7 @@ parse_args(argc, argv)
|
||||
{
|
||||
int argch;
|
||||
|
||||
while (EOF != (argch = getopt(argc, argv, "x:"))) {
|
||||
while ((argch = getopt(argc, argv, "x:")) != -1) {
|
||||
switch (argch) {
|
||||
case 'x':
|
||||
if (!set_debug_flags(optarg))
|
||||
|
@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
#if !defined(lint) && !defined(LINT)
|
||||
static char rcsid[] = "$Id$";
|
||||
static char rcsid[] = "$Id: crontab.c,v 1.9 1997/02/22 16:04:53 peter Exp $";
|
||||
#endif
|
||||
|
||||
/* crontab - install and manage per-user crontab files
|
||||
@ -147,7 +147,7 @@ parse_args(argc, argv)
|
||||
strcpy(RealUser, User);
|
||||
Filename[0] = '\0';
|
||||
Option = opt_unknown;
|
||||
while (EOF != (argch = getopt(argc, argv, "u:lerx:"))) {
|
||||
while ((argch = getopt(argc, argv, "u:lerx:")) != -1) {
|
||||
switch (argch) {
|
||||
case 'x':
|
||||
if (!set_debug_flags(optarg))
|
||||
|
@ -84,7 +84,7 @@ char **argv;
|
||||
|
||||
if(argc > 0) pname = argv[0];
|
||||
|
||||
while ((ch = getopt(argc, argv, "k:f:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "k:f:")) != -1)
|
||||
switch(ch) {
|
||||
case 'k':
|
||||
add_to_keep_list(optarg);
|
||||
|
@ -510,7 +510,7 @@ main(int argc, char **argv)
|
||||
flag_ignore = 1;
|
||||
#endif
|
||||
|
||||
while ((i = getopt(argc, argv, "D:I:B:l:qv")) != EOF)
|
||||
while ((i = getopt(argc, argv, "D:I:B:l:qv")) != -1)
|
||||
switch (i) {
|
||||
case 'D':
|
||||
damage_limit = strtol(optarg, 0, 0);
|
||||
|
@ -78,7 +78,7 @@ main(argc, argv)
|
||||
u_char buf[MAXNAMLEN + 1];
|
||||
char dbtmp[MAXPATHLEN + 1], dbname[MAXPATHLEN + 1];
|
||||
|
||||
while ((ch = getopt(argc, argv, "")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "")) != -1)
|
||||
switch((char)ch) {
|
||||
case '?':
|
||||
default:
|
||||
|
@ -97,7 +97,7 @@ main(argc, argv)
|
||||
exit(1);
|
||||
}
|
||||
quotatype = USRQUOTA;
|
||||
while ((ch = getopt(argc, argv, "ugtp:")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "ugtp:")) != -1) {
|
||||
switch(ch) {
|
||||
case 'p':
|
||||
protoname = optarg;
|
||||
|
@ -63,7 +63,7 @@ main(int argc, char **argv)
|
||||
int fd, i;
|
||||
int debug = -1, settype = 1;
|
||||
|
||||
while((i = getopt(argc, argv, "d:s")) != EOF)
|
||||
while((i = getopt(argc, argv, "d:s")) != -1)
|
||||
switch(i)
|
||||
{
|
||||
case 'd':
|
||||
|
@ -40,7 +40,7 @@ static char copyright[] __attribute__ ((unused)) =
|
||||
#ifndef lint
|
||||
/* from: @(#)inetd.c 8.4 (Berkeley) 4/13/94"; */
|
||||
static char inetd_c_rcsid[] __attribute__ ((unused)) =
|
||||
"$Id$";
|
||||
"$Id: inetd.c,v 1.21 1997/02/22 16:05:52 peter Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -289,7 +289,7 @@ main(argc, argv, envp)
|
||||
openlog("inetd", LOG_PID | LOG_NOWAIT, LOG_DAEMON);
|
||||
|
||||
bind_address.s_addr = htonl(INADDR_ANY);
|
||||
while ((ch = getopt(argc, argv, "dlR:a:p:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "dlR:a:p:")) != -1)
|
||||
switch(ch) {
|
||||
case 'd':
|
||||
debug = 1;
|
||||
|
@ -146,7 +146,7 @@ main(argc, argv)
|
||||
|
||||
interval = reps = 0;
|
||||
nlistf = memf = NULL;
|
||||
while ((ch = getopt(argc, argv, "c:M:N:w:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "c:M:N:w:")) != -1)
|
||||
switch(ch) {
|
||||
case 'c':
|
||||
if ((reps = atoi(optarg)) <= 0)
|
||||
|
@ -87,7 +87,7 @@ main(int argc, char **argv)
|
||||
seteuid(getuid());
|
||||
kmemf = NULL;
|
||||
system = NULL;
|
||||
while ((ch = getopt(argc, argv, "M:N:Bbhpr")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "M:N:Bbhpr")) != -1) {
|
||||
switch((char)ch) {
|
||||
|
||||
case 'M':
|
||||
|
@ -76,7 +76,7 @@ main(argc, argv)
|
||||
int ch;
|
||||
char *p, *nlistpath, *nlistname, dbtemp[MAXPATHLEN], dbname[MAXPATHLEN];
|
||||
|
||||
while ((ch = getopt(argc, argv, "")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "")) != -1)
|
||||
switch (ch) {
|
||||
case '?':
|
||||
default:
|
||||
|
@ -90,7 +90,7 @@ main(argc, argv)
|
||||
openlog("lpd", 0, LOG_LPR);
|
||||
|
||||
aflag = lflag = 0;
|
||||
while ((ch = getopt(argc, argv, "alP:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "alP:")) != -1)
|
||||
switch((char)ch) {
|
||||
case 'a':
|
||||
++aflag;
|
||||
|
@ -45,7 +45,7 @@ static char copyright[] =
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "From: @(#)lpr.c 8.4 (Berkeley) 4/28/95"
|
||||
"\n$Id: lpr.c,v 1.12 1997/02/22 16:06:20 peter Exp $\n";
|
||||
"\n$Id: lpr.c,v 1.13 1997/02/26 02:22:45 mpp Exp $\n";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -140,7 +140,7 @@ main(argc, argv)
|
||||
|
||||
errs = 0;
|
||||
while ((c = getopt(argc, argv,
|
||||
":#:1:2:3:4:C:J:P:T:U:cdfghi:lnmprstvw:")) != EOF)
|
||||
":#:1:2:3:4:C:J:P:T:U:cdfghi:lnmprstvw:")) != -1)
|
||||
switch (c) {
|
||||
case '#': /* n copies */
|
||||
i = atoi(optarg);
|
||||
|
@ -29,7 +29,7 @@
|
||||
/*
|
||||
* Create an MS-DOS (FAT) file system.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: mkdosfs.c,v 1.4 1997/02/22 16:06:38 peter Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -206,7 +206,7 @@ main(int argc, char **argv)
|
||||
int c, i, fd, format = 0, rootdirsize;
|
||||
const char *label = 0;
|
||||
|
||||
while((c = getopt(argc, argv, "f:L:")) != EOF)
|
||||
while((c = getopt(argc, argv, "f:L:")) != -1)
|
||||
switch(c)
|
||||
{
|
||||
case 'f':
|
||||
|
@ -30,7 +30,7 @@
|
||||
** EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
**
|
||||
**
|
||||
** $Id: moused.c,v 1.7 1997/02/22 16:06:42 peter Exp $
|
||||
** $Id: moused.c,v 1.8 1997/03/29 12:10:26 peter Exp $
|
||||
**/
|
||||
|
||||
/**
|
||||
@ -157,7 +157,7 @@ main(int argc, char *argv[])
|
||||
|
||||
progname = argv[0];
|
||||
|
||||
while((c = getopt(argc,argv,"cdfr:sp:t:h?RDS:")) != EOF)
|
||||
while((c = getopt(argc,argv,"cdfr:sp:t:h?RDS:")) != -1)
|
||||
switch(c)
|
||||
{
|
||||
case 'c':
|
||||
|
@ -72,7 +72,7 @@ main(argc, argv)
|
||||
|
||||
dir = NULL;
|
||||
keys = KEYDEFAULT;
|
||||
while ((ch = getopt(argc, argv, "cdef:iK:k:np:rs:Uux")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "cdef:iK:k:np:rs:Uux")) != -1)
|
||||
switch((char)ch) {
|
||||
case 'c':
|
||||
cflag = 1;
|
||||
|
@ -25,11 +25,11 @@ provided "as is" without express or implied warranty.
|
||||
* keeping the a specified number of backup files around.
|
||||
*
|
||||
* $Source: /home/ncvs/src/usr.sbin/newsyslog/newsyslog.c,v $
|
||||
* $Author: jkh $
|
||||
* $Author: peter $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id$";
|
||||
static char rcsid[] = "$Id: newsyslog.c,v 1.9 1997/02/22 16:08:26 peter Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifndef CONF
|
||||
@ -212,7 +212,7 @@ static void PRS(argc,argv)
|
||||
}
|
||||
|
||||
optind = 1; /* Start options parsing */
|
||||
while ((c=getopt(argc,argv,"nrvf:t:")) != EOF)
|
||||
while ((c=getopt(argc,argv,"nrvf:t:")) != -1)
|
||||
switch (c) {
|
||||
case 'n':
|
||||
noaction++; /* This implies needroot as off */
|
||||
|
@ -68,7 +68,7 @@ main(int argc, char **argv)
|
||||
|
||||
listmode = readmode = writemode = attachedmode = byte = isshort = 0;
|
||||
|
||||
while ((c = getopt(argc, argv, "alrwbh")) != EOF) {
|
||||
while ((c = getopt(argc, argv, "alrwbh")) != -1) {
|
||||
switch(c) {
|
||||
case 'a':
|
||||
attachedmode = 1;
|
||||
|
@ -68,7 +68,7 @@ char *argv[];
|
||||
int dflag = -1;
|
||||
char *device;
|
||||
|
||||
while( (c = getopt(argc, argv, "d:n:s:e:")) != EOF)
|
||||
while( (c = getopt(argc, argv, "d:n:s:e:")) != -1)
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
|
@ -59,7 +59,7 @@ char *argv[];
|
||||
int fflag = -1;
|
||||
char *filename;
|
||||
|
||||
while( (c = getopt(argc, argv, "d:f:")) != EOF)
|
||||
while( (c = getopt(argc, argv, "d:f:")) != -1)
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
|
@ -76,7 +76,7 @@ char *argv[];
|
||||
int fd;
|
||||
char *device;
|
||||
|
||||
while( (c = getopt(argc, argv, "vcd:")) != EOF)
|
||||
while( (c = getopt(argc, argv, "vcd:")) != -1)
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
|
@ -95,7 +95,7 @@ char *argv[];
|
||||
char *map;
|
||||
int kbfd;
|
||||
|
||||
while((c = getopt(argc, argv, "Rd:lm:opr:st:x")) != EOF)
|
||||
while((c = getopt(argc, argv, "Rd:lm:opr:st:x")) != -1)
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ char *argv[];
|
||||
int dflag = 0;
|
||||
char *device;
|
||||
|
||||
while( (c = getopt(argc, argv, "c:d:f:i")) != EOF)
|
||||
while( (c = getopt(argc, argv, "c:d:f:i")) != -1)
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
|
@ -89,7 +89,7 @@ int main(int argc, char **argv) {
|
||||
int left = 0, mid = 0, right = 0, accel = 0, sticky = -1;
|
||||
struct mousedefs mdef;
|
||||
|
||||
while((c = getopt(argc, argv, "l:m:r:a:s:")) != EOF)
|
||||
while((c = getopt(argc, argv, "l:m:r:a:s:")) != -1)
|
||||
switch(c) {
|
||||
case 'l':
|
||||
left = nametoscan(optarg);
|
||||
|
@ -196,7 +196,7 @@ char *argv[];
|
||||
int c;
|
||||
int fd;
|
||||
|
||||
while( (c = getopt(argc, argv, "ac:d:f:HVlms:t:vp:18")) != EOF)
|
||||
while( (c = getopt(argc, argv, "ac:d:f:HVlms:t:vp:18")) != -1)
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
|
@ -63,7 +63,7 @@ char *argv[];
|
||||
long freq = -1;
|
||||
int no = -1;
|
||||
|
||||
while( (c = getopt(argc, argv, "f:n:")) != EOF)
|
||||
while( (c = getopt(argc, argv, "f:n:")) != -1)
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
|
@ -88,7 +88,7 @@ main(argc,argv)
|
||||
if(argc == 1) usage(); /* program requires options */
|
||||
|
||||
/* get options */
|
||||
while ((option = getopt(argc, argv, "cli")) != EOF)
|
||||
while ((option = getopt(argc, argv, "cli")) != -1)
|
||||
switch(option)
|
||||
{
|
||||
case 'c' :
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef lint
|
||||
static char *rcsid = "$Id$";
|
||||
static char *rcsid = "$Id: main.c,v 1.13 1997/02/22 16:09:18 peter Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -53,7 +53,7 @@ main(int argc, char **argv)
|
||||
char *prog_name = argv[0], *cp;
|
||||
|
||||
start = argv;
|
||||
while ((ch = getopt(argc, argv, Options)) != EOF) {
|
||||
while ((ch = getopt(argc, argv, Options)) != -1) {
|
||||
switch(ch) {
|
||||
case 'v':
|
||||
Verbose = TRUE;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef lint
|
||||
static const char *rcsid = "$Id$";
|
||||
static const char *rcsid = "$Id: main.c,v 1.14 1997/02/22 16:09:25 peter Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -41,7 +41,7 @@ main(int argc, char **argv)
|
||||
char *prog_name = argv[0];
|
||||
|
||||
pkgs = start = argv;
|
||||
while ((ch = getopt(argc, argv, Options)) != EOF)
|
||||
while ((ch = getopt(argc, argv, Options)) != -1)
|
||||
switch(ch) {
|
||||
case 'v':
|
||||
Verbose = TRUE;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef lint
|
||||
static char *rcsid = "$Id$";
|
||||
static char *rcsid = "$Id: main.c,v 1.8 1997/02/22 16:09:36 peter Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -41,7 +41,7 @@ main(int argc, char **argv)
|
||||
char *prog_name = argv[0];
|
||||
|
||||
pkgs = start = argv;
|
||||
while ((ch = getopt(argc, argv, Options)) != EOF)
|
||||
while ((ch = getopt(argc, argv, Options)) != -1)
|
||||
switch(ch) {
|
||||
case 'v':
|
||||
Verbose = TRUE;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#ifndef lint
|
||||
static char *rcsid = "$Id$";
|
||||
static char *rcsid = "$Id: main.c,v 1.12 1997/02/22 16:09:41 peter Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -43,7 +43,7 @@ main(int argc, char **argv)
|
||||
char *prog_name = argv[0];
|
||||
|
||||
pkgs = start = argv;
|
||||
while ((ch = getopt(argc, argv, Options)) != EOF)
|
||||
while ((ch = getopt(argc, argv, Options)) != -1)
|
||||
switch(ch) {
|
||||
case 'a':
|
||||
AllInstalled = TRUE;
|
||||
|
@ -113,7 +113,7 @@ main(argc, argv)
|
||||
int len = sizeof(struct sockaddr_in);
|
||||
register struct pmaplist *pml;
|
||||
|
||||
while ((c = getopt(argc, argv, "dv")) != EOF) {
|
||||
while ((c = getopt(argc, argv, "dv")) != -1) {
|
||||
switch (c) {
|
||||
|
||||
case 'd':
|
||||
|
@ -263,7 +263,7 @@ main(argc, argv)
|
||||
usage = "usage: pstat [-Tfknstv] [-M core] [-N system]\n";
|
||||
}
|
||||
|
||||
while ((ch = getopt(argc, argv, opts)) != EOF)
|
||||
while ((ch = getopt(argc, argv, opts)) != -1)
|
||||
switch (ch) {
|
||||
case 'f':
|
||||
fileflag = 1;
|
||||
|
@ -110,7 +110,7 @@ main(argc, argv)
|
||||
strcpy(prefix, _PATH_PWD);
|
||||
makeold = 0;
|
||||
username = NULL;
|
||||
while ((ch = getopt(argc, argv, "cd:pu:v")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "cd:pu:v")) != -1)
|
||||
switch(ch) {
|
||||
case 'c': /* verify only */
|
||||
cflag = 1;
|
||||
|
@ -84,7 +84,7 @@ main(int argc, char **argv)
|
||||
x_size = y_size = zoom = depth = brightness = whitebalance =
|
||||
contrast = exposure = -1;
|
||||
|
||||
while ((opt = getopt(argc, argv, "p:x:y:z:d:b:w:c:e:")) != EOF) {
|
||||
while ((opt = getopt(argc, argv, "p:x:y:z:d:b:w:c:e:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'p':
|
||||
port = optarg;
|
||||
|
@ -83,7 +83,7 @@ main(argc, argv)
|
||||
whoami);
|
||||
exit(1);
|
||||
}
|
||||
while ((ch = getopt(argc, argv, "avug")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "avug")) != -1) {
|
||||
switch(ch) {
|
||||
case 'a':
|
||||
aflag++;
|
||||
|
@ -26,7 +26,7 @@ The Regents of the University of California. All rights reserved.\n";
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: rarpd.c,v 1.15 1997/02/22 16:12:44 peter Exp $";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -184,7 +184,7 @@ main(argc, argv)
|
||||
openlog(name, LOG_PID | LOG_CONS, LOG_DAEMON);
|
||||
|
||||
opterr = 0;
|
||||
while ((op = getopt(argc, argv, "afsv")) != EOF) {
|
||||
while ((op = getopt(argc, argv, "afsv")) != -1) {
|
||||
switch (op) {
|
||||
case 'a':
|
||||
++aflag;
|
||||
|
@ -88,7 +88,7 @@ main(argc, argv)
|
||||
extern int optind;
|
||||
char ch, *qfnp;
|
||||
|
||||
while ((ch = getopt(argc, argv, "aguv")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "aguv")) != -1) {
|
||||
switch(ch) {
|
||||
case 'a':
|
||||
aflag++;
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: rndcontrol.c,v 1.6 1997/02/22 16:12:47 peter Exp $
|
||||
* $Id: rndcontrol.c,v 1.7 1997/03/11 15:56:09 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -61,7 +61,7 @@ main(int argc, char *argv[])
|
||||
return (1);
|
||||
}
|
||||
else {
|
||||
while ((ch = getopt(argc, argv, "qs:c:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "qs:c:")) != -1)
|
||||
switch (ch) {
|
||||
case 'q':
|
||||
verbose = 0;
|
||||
|
@ -29,7 +29,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: yppasswdd_main.c,v 1.9 1997/02/22 16:12:56 peter Exp $
|
||||
*/
|
||||
|
||||
#include "yppasswd.h"
|
||||
@ -72,7 +72,7 @@ struct dom_binding {};
|
||||
|
||||
#define _RPCSVC_CLOSEDOWN 120
|
||||
#ifndef lint
|
||||
static const char rcsid[] = "$Id$";
|
||||
static const char rcsid[] = "$Id: yppasswdd_main.c,v 1.9 1997/02/22 16:12:56 peter Exp $";
|
||||
#endif /* not lint */
|
||||
int _rpcpmstart = 0; /* Started by a port monitor ? */
|
||||
static int _rpcfdtype;
|
||||
@ -212,7 +212,7 @@ main(argc, argv)
|
||||
|
||||
debug = 1;
|
||||
|
||||
while ((ch = getopt(argc, argv, "t:d:p:sfamuivh")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "t:d:p:sfamuivh")) != -1) {
|
||||
switch(ch) {
|
||||
case 't':
|
||||
passfile_default = optarg;
|
||||
|
@ -29,7 +29,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: ypxfrd_main.c,v 1.3 1997/02/22 16:13:02 peter Exp $
|
||||
* $Id: ypxfrd_main.c,v 1.4 1997/03/11 15:56:48 peter Exp $
|
||||
*/
|
||||
|
||||
#include "ypxfrd.h"
|
||||
@ -61,7 +61,7 @@
|
||||
|
||||
#define _RPCSVC_CLOSEDOWN 120
|
||||
#ifndef lint
|
||||
static const char rcsid[] = "$Id: ypxfrd_main.c,v 1.3 1997/02/22 16:13:02 peter Exp $";
|
||||
static const char rcsid[] = "$Id: ypxfrd_main.c,v 1.4 1997/03/11 15:56:48 peter Exp $";
|
||||
#endif /* not lint */
|
||||
int _rpcpmstart; /* Started by a port monitor ? */
|
||||
static int _rpcfdtype;
|
||||
@ -192,7 +192,7 @@ main(argc, argv)
|
||||
int asize = sizeof (saddr);
|
||||
int ch;
|
||||
|
||||
while ((ch = getopt(argc, argv, "p:h")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "p:h")) != -1) {
|
||||
switch(ch) {
|
||||
case 'p':
|
||||
yp_dir = optarg;
|
||||
|
@ -51,7 +51,7 @@ char **argv;
|
||||
{
|
||||
int opt;
|
||||
|
||||
while ((opt = getopt(argc, argv, "o:")) != EOF) {
|
||||
while ((opt = getopt(argc, argv, "o:")) != -1) {
|
||||
switch (opt) {
|
||||
case 'o':
|
||||
if (!freopen(optarg, "w", stdout)) {
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: mail.local.c,v 1.7 1997/02/22 16:13:23 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -215,7 +215,7 @@ main(argc, argv)
|
||||
from = NULL;
|
||||
nobiff = 0;
|
||||
nofsync = 0;
|
||||
while ((ch = getopt(argc, argv, "bdf:r:s")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "bdf:r:s")) != -1)
|
||||
switch(ch) {
|
||||
case 'b':
|
||||
nobiff++;
|
||||
|
@ -73,7 +73,7 @@ main(argc, argv)
|
||||
cfile = _PATH_SENDMAILCF;
|
||||
sfile = NULL;
|
||||
mnames = TRUE;
|
||||
while ((ch = getopt(argc, argv, "C:f:o")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "C:f:o")) != -1)
|
||||
{
|
||||
switch (ch)
|
||||
{
|
||||
|
@ -129,7 +129,7 @@ main(argc, argv)
|
||||
#else
|
||||
#define OPTIONS "Ndforv"
|
||||
#endif
|
||||
while ((opt = getopt(argc, argv, OPTIONS)) != EOF)
|
||||
while ((opt = getopt(argc, argv, OPTIONS)) != -1)
|
||||
{
|
||||
switch (opt)
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ main(argc, argv)
|
||||
#endif
|
||||
|
||||
filename = "/etc/aliases";
|
||||
while ((ch = getopt(argc, argv, "f:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "f:")) != -1)
|
||||
switch((char)ch) {
|
||||
case 'f':
|
||||
filename = optarg;
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: rmail.c,v 1.4 1997/02/22 16:13:27 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
@ -105,7 +105,7 @@ main(argc, argv)
|
||||
|
||||
debug = 0;
|
||||
domain = "UUCP"; /* Default "domain". */
|
||||
while ((ch = getopt(argc, argv, "D:T")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "D:T")) != -1)
|
||||
switch (ch) {
|
||||
case 'T':
|
||||
debug = 1;
|
||||
|
@ -85,7 +85,7 @@ main(argc, argv)
|
||||
char *path;
|
||||
int ch;
|
||||
|
||||
while ((ch = getopt(argc, argv, "Aan")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "Aan")) != -1) {
|
||||
switch (ch) {
|
||||
|
||||
case 'A':
|
||||
|
@ -40,7 +40,7 @@ static char copyright[] =
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "From: @(#)sysctl.c 8.1 (Berkeley) 6/6/93"; */
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: sysctl.c,v 1.12 1997/02/22 16:13:58 peter Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -85,7 +85,7 @@ main(int argc, char **argv)
|
||||
setbuf(stdout,0);
|
||||
setbuf(stderr,0);
|
||||
|
||||
while ((ch = getopt(argc, argv, "AabnwX")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "AabnwX")) != -1) {
|
||||
switch (ch) {
|
||||
case 'A': Aflag = 1; break;
|
||||
case 'a': aflag = 1; break;
|
||||
|
@ -39,7 +39,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
|
||||
*/
|
||||
static const char rcsid[] =
|
||||
"$Id: syslogd.c,v 1.20 1997/02/22 16:14:00 peter Exp $";
|
||||
"$Id: syslogd.c,v 1.21 1997/03/14 01:27:02 joerg Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -260,7 +260,7 @@ main(argc, argv)
|
||||
struct timeval tv, *tvp;
|
||||
pid_t ppid;
|
||||
|
||||
while ((ch = getopt(argc, argv, "dsf:Im:p:")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "dsf:Im:p:")) != -1)
|
||||
switch(ch) {
|
||||
case 'd': /* debug */
|
||||
Debug++;
|
||||
|
@ -22,7 +22,7 @@
|
||||
char copyright[] =
|
||||
"@(#) Copyright (c) 1987-1990 The Regents of the University of California.\nAll rights reserved.\n";
|
||||
static char rcsid[] =
|
||||
"@(#)$Header: /home/ncvs/src/usr.sbin/tcpdump/tcpslice/tcpslice.c,v 1.2 1995/03/08 12:53:40 olah Exp $ (LBL)";
|
||||
"@(#)$Header: /home/ncvs/src/usr.sbin/tcpdump/tcpslice/tcpslice.c,v 1.3 1995/08/23 05:18:59 pst Exp $ (LBL)";
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -81,7 +81,7 @@ main(int argc, char **argv)
|
||||
program_name = argv[0];
|
||||
|
||||
opterr = 0;
|
||||
while ((op = getopt(argc, argv, "dRrtw:")) != EOF)
|
||||
while ((op = getopt(argc, argv, "dRrtw:")) != -1)
|
||||
switch (op) {
|
||||
|
||||
case 'd':
|
||||
|
@ -42,7 +42,7 @@ static char sccsid[] = "@(#)timed.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifdef sgi
|
||||
#ident "$Revision: 1.1.1.1 $"
|
||||
#ident "$Revision: 1.2 $"
|
||||
#endif /* sgi */
|
||||
|
||||
#define TSPTYPES
|
||||
@ -185,7 +185,7 @@ main(argc, argv)
|
||||
#endif /* sgi */
|
||||
|
||||
opterr = 0;
|
||||
while ((c = getopt(argc, argv, "Mtdn:i:F:G:P:")) != EOF) {
|
||||
while ((c = getopt(argc, argv, "Mtdn:i:F:G:P:")) != -1) {
|
||||
switch (c) {
|
||||
case 'M':
|
||||
Mflag = 1;
|
||||
|
@ -114,7 +114,7 @@ main(argc, argv)
|
||||
off_t lseek();
|
||||
|
||||
jflag = npcbs = 0;
|
||||
while ((ch = getopt(argc, argv, "afjp:st")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "afjp:st")) != -1)
|
||||
switch (ch) {
|
||||
case 'a':
|
||||
++aflag;
|
||||
|
@ -67,7 +67,7 @@ main(argc, argv)
|
||||
struct stat begin, end;
|
||||
int ch;
|
||||
|
||||
while ((ch = getopt(argc, argv, "")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "")) != -1)
|
||||
switch (ch) {
|
||||
case '?':
|
||||
default:
|
||||
|
@ -92,7 +92,7 @@ main(argc, argv)
|
||||
|
||||
pname = argv[0];
|
||||
configfile = _PATH_VNTAB;
|
||||
while ((i = getopt(argc, argv, "acdef:gr:s:uv")) != EOF)
|
||||
while ((i = getopt(argc, argv, "acdef:gr:s:uv")) != -1)
|
||||
switch (i) {
|
||||
|
||||
/* all -- use config file */
|
||||
|
@ -291,7 +291,7 @@ main(ac, av)
|
||||
opt_interactive = 0;
|
||||
|
||||
|
||||
while ((ch = getopt(ac, av, "Wciotn")) != EOF)
|
||||
while ((ch = getopt(ac, av, "Wciotn")) != -1)
|
||||
switch (ch) {
|
||||
case 'W':
|
||||
opt_write = 1;
|
||||
|
@ -32,7 +32,7 @@
|
||||
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
|
||||
* DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: wormcontrol.c,v 1.4 1997/02/22 16:14:12 peter Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -69,7 +69,7 @@ main(int argc, char **argv)
|
||||
int errs = 0;
|
||||
const char *devname = "/dev/rworm0";
|
||||
|
||||
while ((c = getopt(argc, argv, "f:")) != EOF)
|
||||
while ((c = getopt(argc, argv, "f:")) != -1)
|
||||
switch(c) {
|
||||
case 'f':
|
||||
devname = optarg;
|
||||
|
@ -29,7 +29,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: yp_mkdb.c,v 1.6 1997/02/22 16:14:50 peter Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@ -50,7 +50,7 @@
|
||||
#include "ypxfr_extern.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] = "$Id$";
|
||||
static const char rcsid[] = "$Id: yp_mkdb.c,v 1.6 1997/02/22 16:14:50 peter Exp $";
|
||||
#endif
|
||||
|
||||
char *yp_dir = ""; /* No particular default needed. */
|
||||
@ -121,7 +121,7 @@ main (argc, argv)
|
||||
FILE *ifp;
|
||||
char hname[MAXHOSTNAMELEN + 2];
|
||||
|
||||
while ((ch = getopt(argc, argv, "uhcbsd:i:o:m:")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "uhcbsd:i:o:m:")) != -1) {
|
||||
switch(ch) {
|
||||
case 'u':
|
||||
un++;
|
||||
|
@ -29,7 +29,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: yppush_main.c,v 1.7 1997/02/22 16:15:02 peter Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@ -53,7 +53,7 @@ struct dom_binding {};
|
||||
#include "yppush_extern.h"
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] = "$Id$";
|
||||
static const char rcsid[] = "$Id: yppush_main.c,v 1.7 1997/02/22 16:15:02 peter Exp $";
|
||||
#endif
|
||||
|
||||
char *progname = "yppush";
|
||||
@ -544,7 +544,7 @@ main(argc,argv)
|
||||
struct hostlist *tmp;
|
||||
struct sigaction sa;
|
||||
|
||||
while ((ch = getopt(argc, argv, "d:j:p:h:t:v")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "d:j:p:h:t:v")) != -1) {
|
||||
switch(ch) {
|
||||
case 'd':
|
||||
yppush_domain = optarg;
|
||||
|
@ -29,7 +29,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: yp_main.c,v 1.14 1997/02/22 16:15:12 peter Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -66,7 +66,7 @@
|
||||
|
||||
#define _RPCSVC_CLOSEDOWN 120
|
||||
#ifndef lint
|
||||
static const char rcsid[] = "$Id$";
|
||||
static const char rcsid[] = "$Id: yp_main.c,v 1.14 1997/02/22 16:15:12 peter Exp $";
|
||||
#endif /* not lint */
|
||||
int _rpcpmstart; /* Started by a port monitor ? */
|
||||
static int _rpcfdtype;
|
||||
@ -224,7 +224,7 @@ main(argc, argv)
|
||||
int asize = sizeof (saddr);
|
||||
int ch;
|
||||
|
||||
while ((ch = getopt(argc, argv, "hdnp:")) != EOF) {
|
||||
while ((ch = getopt(argc, argv, "hdnp:")) != -1) {
|
||||
switch(ch) {
|
||||
case 'd':
|
||||
debug = ypdb_debug = 1;
|
||||
|
@ -476,7 +476,7 @@ char * argv[];
|
||||
(void) textdomain(TZ_DOMAIN);
|
||||
#endif /* HAVE_GETTEXT - 0 */
|
||||
progname = argv[0];
|
||||
while ((c = getopt(argc, argv, "d:l:p:L:vsy:")) != EOF)
|
||||
while ((c = getopt(argc, argv, "d:l:p:L:vsy:")) != -1)
|
||||
switch (c) {
|
||||
default:
|
||||
usage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user