[BACK]Return to modstat.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / modstat

Diff for /src/usr.bin/modstat/Attic/modstat.c between version 1.17 and 1.18

version 1.17, 2002/01/09 18:19:28 version 1.18, 2002/05/24 07:03:35
Line 57 
Line 57 
         "EXEC",          "EXEC",
         "MISC"          "MISC"
 };  };
 static int devfd;  
   
 static void  static void
 usage()  usage()
Line 114 
Line 113 
         int c, modnum = -1;          int c, modnum = -1;
         char *modname = NULL;          char *modname = NULL;
         char *endptr;          char *endptr;
           int devfd;
   
         while ((c = getopt(argc, argv, "i:n:")) != -1) {          while ((c = getopt(argc, argv, "i:n:")) != -1) {
                 switch (c) {                  switch (c) {
Line 121 
Line 121 
                         modnum = (int)strtol(optarg, &endptr, 0);                          modnum = (int)strtol(optarg, &endptr, 0);
                         if (modnum < 0 || modnum > INT_MAX || *endptr != '\0')                          if (modnum < 0 || modnum > INT_MAX || *endptr != '\0')
                                 errx(1, "%s: not a valid number", optarg);                                  errx(1, "%s: not a valid number", optarg);
                         modnum = atoi(optarg);  
                         break;                          break;
                 case 'n':                  case 'n':
                         modname = optarg;                          modname = optarg;

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18