From 3e8e744696c496635af4fdbca1aa0a8bc1acf95b Mon Sep 17 00:00:00 2001 From: lukem Date: Sat, 1 Nov 1997 06:49:14 +0000 Subject: getopt returns -1 not EOF --- sys/dev/microcode/aic7xxx/aic7xxx_asm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev/microcode') diff --git a/sys/dev/microcode/aic7xxx/aic7xxx_asm.c b/sys/dev/microcode/aic7xxx/aic7xxx_asm.c index fd9e8bb4229..e18a7732d38 100644 --- a/sys/dev/microcode/aic7xxx/aic7xxx_asm.c +++ b/sys/dev/microcode/aic7xxx/aic7xxx_asm.c @@ -1,4 +1,4 @@ -/* $NetBSD: aic7xxx_asm.c,v 1.4 1996/05/20 00:48:48 thorpej Exp $ */ +/* $NetBSD: aic7xxx_asm.c,v 1.5 1997/11/01 06:49:58 lukem Exp $ */ /*+M************************************************************************* * Adaptec AIC7770/AIC7870 sequencer code assembler. @@ -45,7 +45,7 @@ * are token separators. * *-M*************************************************************************/ -static char id[] = "$NetBSD: aic7xxx_asm.c,v 1.4 1996/05/20 00:48:48 thorpej Exp $"; +static char id[] = "$NetBSD: aic7xxx_asm.c,v 1.5 1997/11/01 06:49:58 lukem Exp $"; #include #include #include @@ -587,7 +587,7 @@ main(int argc, char **argv) int fd[2]; ofile = NULL; - while ((c = getopt(argc, argv, "dho:vD:")) != EOF) { + while ((c = getopt(argc, argv, "dho:vD:")) != -1) { switch (c) { case 'd': debug = !0; -- cgit