diff options
Diffstat (limited to 'sys/arch')
20 files changed, 26 insertions, 26 deletions
diff --git a/sys/arch/alpha/stand/installboot.c b/sys/arch/alpha/stand/installboot.c index f5f664b0075..d829203e434 100644 --- a/sys/arch/alpha/stand/installboot.c +++ b/sys/arch/alpha/stand/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.4 1996/10/30 22:40:31 niklas Exp $ */ +/* $OpenBSD: installboot.c,v 1.5 1997/01/15 23:41:48 millert Exp $ */ /* $NetBSD: installboot.c,v 1.2 1995/12/20 00:17:49 cgd Exp $ */ /* @@ -83,7 +83,7 @@ main(argc, argv) int mib[2]; size_t size; - while ((c = getopt(argc, argv, "vn")) != EOF) { + while ((c = getopt(argc, argv, "vn")) != -1) { switch (c) { case 'n': /* Do not actually write the bootblock to disk */ diff --git a/sys/arch/amiga/stand/binpatch/binpatch.c b/sys/arch/amiga/stand/binpatch/binpatch.c index 358c60caf01..60d04a0dc94 100644 --- a/sys/arch/amiga/stand/binpatch/binpatch.c +++ b/sys/arch/amiga/stand/binpatch/binpatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: binpatch.c,v 1.2 1996/10/04 23:09:54 niklas Exp $ */ +/* $OpenBSD: binpatch.c,v 1.3 1997/01/15 23:41:49 millert Exp $ */ /* $NetBSD: binpatch.c,v 1.6 1995/08/18 15:28:28 chopps Exp $ */ /* Author: Markus Wild mw@eunet.ch ??? */ @@ -110,7 +110,7 @@ main(int argc, char *argv[]) u_char cval; - while ((c = getopt (argc, argv, "H:a:bwlr:s:o:")) != EOF) + while ((c = getopt (argc, argv, "H:a:bwlr:s:o:")) != -1) switch (c) { case 'H': diff --git a/sys/arch/amiga/stand/loadbsd/loadbsd.c b/sys/arch/amiga/stand/loadbsd/loadbsd.c index 82287c45321..bd30916977a 100644 --- a/sys/arch/amiga/stand/loadbsd/loadbsd.c +++ b/sys/arch/amiga/stand/loadbsd/loadbsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loadbsd.c,v 1.8 1996/10/10 07:08:16 niklas Exp $ */ +/* $OpenBSD: loadbsd.c,v 1.9 1997/01/15 23:41:50 millert Exp $ */ /* $NetBSD: loadbsd.c,v 1.19.4.2 1996/08/03 00:51:46 jtc Exp $ */ /* @@ -208,7 +208,7 @@ main(argc, argv) if ((ExpansionBase=(void *)OpenLibrary(EXPANSIONNAME, 0)) == NULL) err(20, "can't open expansion library"); - while ((ch = getopt(argc, argv, "aAbcC:DhI:km:n:ptsSVZ")) != EOF) { + while ((ch = getopt(argc, argv, "aAbcC:DhI:km:n:ptsSVZ")) != -1) { switch (ch) { case 'k': k_flag = 1; diff --git a/sys/arch/atari/stand/binpatch/binpatch.c b/sys/arch/atari/stand/binpatch/binpatch.c index 79f25f72c0a..3a0b46efe5c 100644 --- a/sys/arch/atari/stand/binpatch/binpatch.c +++ b/sys/arch/atari/stand/binpatch/binpatch.c @@ -63,7 +63,7 @@ main(argc, argv) u_char cval; - while ((c = getopt (argc, argv, "a:bwlr:s:o:")) != EOF) + while ((c = getopt (argc, argv, "a:bwlr:s:o:")) != -1) switch (c) { case 'a': diff --git a/sys/arch/atari/stand/tostools/chg_pid/chg_pid.c b/sys/arch/atari/stand/tostools/chg_pid/chg_pid.c index 1a226c93957..553f75ff398 100644 --- a/sys/arch/atari/stand/tostools/chg_pid/chg_pid.c +++ b/sys/arch/atari/stand/tostools/chg_pid/chg_pid.c @@ -95,7 +95,7 @@ int read_block PROTO((void *, int, int)); int write_block PROTO((void *, int, int)); void set_csum PROTO((char *)); -const char version[] = "$Revision: 1.2 $"; +const char version[] = "$Revision: 1.3 $"; char *Progname = NULL; /* What are we called */ int t_flag = 0; /* Test -- don't actually do it */ @@ -121,7 +121,7 @@ char *argv[]; init_toslib(argv[0]); Progname = argv[0]; - while ((c = getopt(argc, argv, "htVwo:")) != EOF) { + while ((c = getopt(argc, argv, "htVwo:")) != -1) { switch (c) { case 'h': h_flag = 1; diff --git a/sys/arch/atari/stand/tostools/loadbsd/loadbsd.c b/sys/arch/atari/stand/tostools/loadbsd/loadbsd.c index 784d0b25d05..649b4ff664b 100644 --- a/sys/arch/atari/stand/tostools/loadbsd/loadbsd.c +++ b/sys/arch/atari/stand/tostools/loadbsd/loadbsd.c @@ -52,7 +52,7 @@ int s_flag = 0; /* St-ram only */ int t_flag = 0; /* Just test, do not execute */ int v_flag = 0; /* show version */ -const char version[] = "$Revision: 1.2 $"; +const char version[] = "$Revision: 1.3 $"; /* * Default name of kernel to boot, large enough to patch @@ -86,7 +86,7 @@ char **argv; kparam.boothowto = RB_SINGLE; - while ((ch = getopt(argc, argv, "abdhstVwDo:S:T:")) != EOF) { + while ((ch = getopt(argc, argv, "abdhstVwDo:S:T:")) != -1) { switch (ch) { case 'a': kparam.boothowto &= ~(RB_SINGLE); diff --git a/sys/arch/atari/stand/tostools/rawwrite/rawwrite.c b/sys/arch/atari/stand/tostools/rawwrite/rawwrite.c index ad4f092496f..d9eed90059a 100644 --- a/sys/arch/atari/stand/tostools/rawwrite/rawwrite.c +++ b/sys/arch/atari/stand/tostools/rawwrite/rawwrite.c @@ -53,7 +53,7 @@ int v_flag = 0; /* Verbose (a dot for each track copied) */ int V_flag = 0; /* Show version */ char *progname; -const char version[] = "$Revision: 1.2 $"; +const char version[] = "$Revision: 1.3 $"; int main(argc, argv) @@ -71,7 +71,7 @@ char *argv[]; progname = argv[0]; init_toslib(argv[0]); - while ((ch = getopt(argc, argv, "hvVwo:")) != EOF) { + while ((ch = getopt(argc, argv, "hvVwo:")) != -1) { switch (ch) { case 'h': h_flag = 1; diff --git a/sys/arch/i386/isa/pcvt/Util/cursor/cursor.c b/sys/arch/i386/isa/pcvt/Util/cursor/cursor.c index 82231e4f0ea..2b38cf9b05a 100644 --- a/sys/arch/i386/isa/pcvt/Util/cursor/cursor.c +++ b/sys/arch/i386/isa/pcvt/Util/cursor/cursor.c @@ -74,7 +74,7 @@ char *argv[]; int dflag = -1; char *device = NULL; - while( (c = getopt(argc, argv, "d:n:s:e:")) != EOF) + while( (c = getopt(argc, argv, "d:n:s:e:")) != -1) { switch(c) { diff --git a/sys/arch/i386/isa/pcvt/Util/demo/playvt.c b/sys/arch/i386/isa/pcvt/Util/demo/playvt.c index d0a391ff6b4..75e1e399260 100644 --- a/sys/arch/i386/isa/pcvt/Util/demo/playvt.c +++ b/sys/arch/i386/isa/pcvt/Util/demo/playvt.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) { diff --git a/sys/arch/i386/isa/pcvt/Util/ispcvt/ispcvt.c b/sys/arch/i386/isa/pcvt/Util/ispcvt/ispcvt.c index 8520c321d9e..64672ffc9eb 100644 --- a/sys/arch/i386/isa/pcvt/Util/ispcvt/ispcvt.c +++ b/sys/arch/i386/isa/pcvt/Util/ispcvt/ispcvt.c @@ -85,7 +85,7 @@ char *argv[]; int fd; char *device = NULL; - while( (c = getopt(argc, argv, "vcd:")) != EOF) + while( (c = getopt(argc, argv, "vcd:")) != -1) { switch(c) { diff --git a/sys/arch/i386/isa/pcvt/Util/kcon/kcon.c b/sys/arch/i386/isa/pcvt/Util/kcon/kcon.c index ba2b21334ef..4db3d93a4b4 100644 --- a/sys/arch/i386/isa/pcvt/Util/kcon/kcon.c +++ b/sys/arch/i386/isa/pcvt/Util/kcon/kcon.c @@ -109,7 +109,7 @@ char *argv[]; char *map = NULL; 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) { diff --git a/sys/arch/i386/isa/pcvt/Util/loadfont/loadfont.c b/sys/arch/i386/isa/pcvt/Util/loadfont/loadfont.c index 3c10e5c8003..3639e790178 100644 --- a/sys/arch/i386/isa/pcvt/Util/loadfont/loadfont.c +++ b/sys/arch/i386/isa/pcvt/Util/loadfont/loadfont.c @@ -95,7 +95,7 @@ main(int argc, char **argv) int dflag = 0; char *device = NULL; - while( (c = getopt(argc, argv, "c:d:f:is:")) != EOF) + while( (c = getopt(argc, argv, "c:d:f:is:")) != -1) { switch(c) { diff --git a/sys/arch/i386/isa/pcvt/Util/mcon/mcon.c b/sys/arch/i386/isa/pcvt/Util/mcon/mcon.c index a4d65060117..f47da8d2eaa 100644 --- a/sys/arch/i386/isa/pcvt/Util/mcon/mcon.c +++ b/sys/arch/i386/isa/pcvt/Util/mcon/mcon.c @@ -88,7 +88,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); diff --git a/sys/arch/i386/isa/pcvt/Util/scon/scon.c b/sys/arch/i386/isa/pcvt/Util/scon/scon.c index 53776168b54..edf9ea2fb08 100644 --- a/sys/arch/i386/isa/pcvt/Util/scon/scon.c +++ b/sys/arch/i386/isa/pcvt/Util/scon/scon.c @@ -204,7 +204,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) { diff --git a/sys/arch/i386/isa/pcvt/Util/set2061/main.c b/sys/arch/i386/isa/pcvt/Util/set2061/main.c index 03a482d3e3f..a7a020d6e28 100644 --- a/sys/arch/i386/isa/pcvt/Util/set2061/main.c +++ b/sys/arch/i386/isa/pcvt/Util/set2061/main.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) { diff --git a/sys/arch/i386/isa/pcvt/Util/userkeys/vt220keys.c b/sys/arch/i386/isa/pcvt/Util/userkeys/vt220keys.c index bca5a787ae8..839f83bba4c 100644 --- a/sys/arch/i386/isa/pcvt/Util/userkeys/vt220keys.c +++ b/sys/arch/i386/isa/pcvt/Util/userkeys/vt220keys.c @@ -96,7 +96,7 @@ int 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' : diff --git a/sys/arch/mvme68k/stand/installboot/installboot.c b/sys/arch/mvme68k/stand/installboot/installboot.c index 19ed48b0d2a..88244cb41ba 100644 --- a/sys/arch/mvme68k/stand/installboot/installboot.c +++ b/sys/arch/mvme68k/stand/installboot/installboot.c @@ -89,7 +89,7 @@ main(argc, argv) char *protostore; long protosize; - while ((c = getopt(argc, argv, "vnh")) != EOF) { + while ((c = getopt(argc, argv, "vnh")) != -1) { switch (c) { case 'h': /* Don't strip a.out header */ diff --git a/sys/arch/pmax/stand/mkboottape.c b/sys/arch/pmax/stand/mkboottape.c index a4707c57800..4d4b20580c8 100644 --- a/sys/arch/pmax/stand/mkboottape.c +++ b/sys/arch/pmax/stand/mkboottape.c @@ -86,7 +86,7 @@ main(argc, argv) char block[DEV_BSIZE]; makebootfile = 0; - while ((i = getopt(argc, argv, "b")) != EOF) + while ((i = getopt(argc, argv, "b")) != -1) switch(i) { case 'b': makebootfile = 1; diff --git a/sys/arch/sparc/stand/installboot.c b/sys/arch/sparc/stand/installboot.c index 643bc96eb4e..959de4a341d 100644 --- a/sys/arch/sparc/stand/installboot.c +++ b/sys/arch/sparc/stand/installboot.c @@ -95,7 +95,7 @@ main(argc, argv) int mib[2]; size_t size; - while ((c = getopt(argc, argv, "a:vnh")) != EOF) { + while ((c = getopt(argc, argv, "a:vnh")) != -1) { switch (c) { case 'a': karch = optarg; diff --git a/sys/arch/sun3/stand/installboot/installboot.c b/sys/arch/sun3/stand/installboot/installboot.c index 19ed48b0d2a..88244cb41ba 100644 --- a/sys/arch/sun3/stand/installboot/installboot.c +++ b/sys/arch/sun3/stand/installboot/installboot.c @@ -89,7 +89,7 @@ main(argc, argv) char *protostore; long protosize; - while ((c = getopt(argc, argv, "vnh")) != EOF) { + while ((c = getopt(argc, argv, "vnh")) != -1) { switch (c) { case 'h': /* Don't strip a.out header */ |