Ignore:
Timestamp:
09/12/06 23:21:44 (5 years ago)
Author:
aj
Message:

cleanup the parameters to ifdhandler and openct-control attach.
include type of the device in these parameters. do not drop the
type if already known. this change requires the updated hotplug files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ifd/sys-bsd.c

    r881 r892  
    360360                        ifd_devid_t id; 
    361361                        const char *driver; 
    362                         char device[256]; 
     362                        char typedev[256]; 
    363363 
    364364                        device_info.udi_addr = address; 
     
    392392                                continue; 
    393393#ifdef __OpenBSD__ 
    394                         snprintf(device, sizeof(device), 
    395                                 "/dev/%s.00", device_info.udi_devnames[0]); 
     394                        snprintf(typedev, sizeof(typedev), 
     395                                "usb:/dev/%s.00", device_info.udi_devnames[0]); 
    396396#else 
    397                         snprintf(device, sizeof(device), 
    398                                  "/dev/%s", device_info.udi_devnames[0]); 
     397                        snprintf(typedev, sizeof(typedev), 
     398                                 "usb:/dev/%s", device_info.udi_devnames[0]); 
    399399#endif  /* __OpenBSD__ */ 
    400400 
    401                         ifd_spawn_handler(driver, device, -1); 
     401                        ifd_(driver, typedev, -1); 
    402402                } 
    403403                close(controller_fd); 
Note: See TracChangeset for help on using the changeset viewer.