Attachments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #19: linux_c_git.diff

File linux_c_git.diff, 361 bytes (added by FJaouen, 2 years ago)

fix to initialize 'location' attribute of 'usb_bus' struct

  • (a) a/linux.c~ vs. (b) b/linux.c

    diff --git a/linux.c~ b/linux.c
    index 3a1ce0c..3d4662d 100644
    a b int usb_os_find_busses(struct usb_bus **busses) 
    349349 
    350350    strncpy(bus->dirname, entry->d_name, sizeof(bus->dirname) - 1); 
    351351    bus->dirname[sizeof(bus->dirname) - 1] = 0; 
     352        bus->location = strtoul(entry->d_name, NULL, 10); 
    352353 
    353354    LIST_ADD(fbus, bus); 
    354355