[BACK]Return to autoconf.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / cats / cats

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/cats/cats/autoconf.c between version 1.9.2.3 and 1.9.2.4

version 1.9.2.3, 2008/01/21 09:35:58 version 1.9.2.4, 2008/02/27 08:36:19
Line 70  static void
Line 70  static void
 get_device(const char *name)  get_device(const char *name)
 {  {
         int unit, part;          int unit, part;
         char devname[16], buf[32];          char devname[16];
         const char *cp;          const char *cp;
         struct device *dv;          device_t dv;
   
         if (strncmp(name, "/dev/", 5) == 0)          if (strncmp(name, "/dev/", 5) == 0)
                 name += 5;                  name += 5;
Line 93  get_device(const char *name)
Line 93  get_device(const char *name)
                 part = *cp - 'a';                  part = *cp - 'a';
         else if (*cp != '\0' && *cp != ' ')          else if (*cp != '\0' && *cp != ' ')
                 return;                  return;
         sprintf(buf, "%s%d", devname, unit);  
         TAILQ_FOREACH(dv, &alldevs, dv_list) {          if ((dv = device_find_by_driver_unit(devname, unit)) != NULL) {
                 if (strcmp(buf, dv->dv_xname) == 0) {                  booted_device = dv;
                         booted_device = dv;                  booted_partition = part;
                         booted_partition = part;  
                         return;  
                 }  
         }          }
 }  }
   

Legend:
Removed from v.1.9.2.3  
changed lines
  Added in v.1.9.2.4

CVSweb <webmaster@jp.NetBSD.org>