From 122c82f79f0f9d07df4e6ee50bba57d8a5ab59a2 Mon Sep 17 00:00:00 2001 From: "chris.double" Date: Sat, 16 Sep 2006 11:46:33 +0000 Subject: [PATCH] usb: change read/write to use byte arrays instead of strings --- contrib/usb/usb.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/usb/usb.factor b/contrib/usb/usb.factor index 5a6c7f96b6..8df17f0370 100644 --- a/contrib/usb/usb.factor +++ b/contrib/usb/usb.factor @@ -16,8 +16,8 @@ FUNCTION: int usb_get_string_simple ( usb_dev_handle* dev, int index, char* buf, FUNCTION: int usb_get_descriptor_by_endpoint ( usb_dev_handle* udev, int ep, uchar type, uchar index, void* buf, int size ) ; FUNCTION: int usb_get_descriptor ( usb_dev_handle* udev, uchar type, uchar index, void* buf, int size ) ; -FUNCTION: int usb_bulk_write ( usb_dev_handle* dev, int ep, char* bytes, int size, int timeout ) ; -FUNCTION: int usb_bulk_read ( usb_dev_handle* dev, int ep, char* bytes, int size, int timeout ) ; +FUNCTION: int usb_bulk_write ( usb_dev_handle* dev, int ep, void* bytes, int size, int timeout ) ; +FUNCTION: int usb_bulk_read ( usb_dev_handle* dev, int ep, void* bytes, int size, int timeout ) ; FUNCTION: int usb_interrupt_write ( usb_dev_handle* dev, int ep, char* bytes, int size, int timeout ) ; FUNCTION: int usb_interrupt_read ( usb_dev_handle* dev, int ep, char* bytes, int size, int timeout ) ; FUNCTION: int usb_control_msg ( usb_dev_handle* dev, int requesttype, int request, int value, int index, char* bytes, int size, int timeout ) ;