=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/modstat/Attic/modstat.c,v retrieving revision 1.17 retrieving revision 1.18 diff -c -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 **** ! /* $OpenBSD: modstat.c,v 1.17 2002/01/09 18:19:28 ericj Exp $ */ /* * Copyright (c) 1993 Terrence R. Lambert. --- 1,4 ---- ! /* $OpenBSD: modstat.c,v 1.18 2002/05/24 07:03:35 ericj Exp $ */ /* * Copyright (c) 1993 Terrence R. Lambert. *************** *** 57,63 **** "EXEC", "MISC" }; - static int devfd; static void usage() --- 57,62 ---- *************** *** 114,119 **** --- 113,119 ---- int c, modnum = -1; char *modname = NULL; char *endptr; + int devfd; while ((c = getopt(argc, argv, "i:n:")) != -1) { switch (c) { *************** *** 121,127 **** 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; --- 121,126 ----