Permalink
Browse files

fix arity of USB::DevHandle#usb_detach_kernel_driver_np

  • Loading branch information...
1 parent 3d41397 commit 0e72bd1f5ac6c2ea30c91f07de823c0674ff9756 @znz znz committed Jan 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 usb.c
View
@@ -930,6 +930,6 @@ Init_usb()
rb_define_method(rb_cUSB_DevHandle, "usb_get_driver_np", rusb_get_driver_np, 2);
#endif
#ifdef LIBUSB_HAS_DETACH_KERNEL_DRIVER_NP
- rb_define_method(rb_cUSB_DevHandle, "usb_detach_kernel_driver_np", rusb_detach_kernel_driver_np, 2);
+ rb_define_method(rb_cUSB_DevHandle, "usb_detach_kernel_driver_np", rusb_detach_kernel_driver_np, 1);
#endif
}

0 comments on commit 0e72bd1

Please sign in to comment.