=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/modstat/Attic/modstat.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- src/usr.bin/modstat/Attic/modstat.c 2002/01/09 18:19:28 1.17 +++ src/usr.bin/modstat/Attic/modstat.c 2002/05/24 07:03:35 1.18 @@ -1,4 +1,4 @@ -/* $OpenBSD: modstat.c,v 1.17 2002/01/09 18:19:28 ericj Exp $ */ +/* $OpenBSD: modstat.c,v 1.18 2002/05/24 07:03:35 ericj Exp $ */ /* * Copyright (c) 1993 Terrence R. Lambert. @@ -57,7 +57,6 @@ "EXEC", "MISC" }; -static int devfd; static void usage() @@ -114,6 +113,7 @@ int c, modnum = -1; char *modname = NULL; char *endptr; + int devfd; while ((c = getopt(argc, argv, "i:n:")) != -1) { switch (c) { @@ -121,7 +121,6 @@ modnum = (int)strtol(optarg, &endptr, 0); if (modnum < 0 || modnum > INT_MAX || *endptr != '\0') errx(1, "%s: not a valid number", optarg); - modnum = atoi(optarg); break; case 'n': modname = optarg;