summaryrefslogtreecommitdiffstats
path: root/daemon/device.h
diff options
context:
space:
mode:
authorGravatar Hector Martin2010-01-23 23:09:43 +0100
committerGravatar Hector Martin2010-01-24 00:20:01 +0100
commitc0b02222fd85feabb0b9901364082dc6ab484b68 (patch)
treee465e0a29a24431c67feb35529912214f8d1308f /daemon/device.h
parent68729a347011a8fb39f1e4aa35ae06c4f2f491d4 (diff)
downloadusbmuxd-c0b02222fd85feabb0b9901364082dc6ab484b68.tar.gz
usbmuxd-c0b02222fd85feabb0b9901364082dc6ab484b68.tar.bz2
Clean up packet size types and add some paranoia
None of this should fix an exploit, it's just healthy paranoia.
Diffstat (limited to 'daemon/device.h')
-rw-r--r--daemon/device.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/device.h b/daemon/device.h
index 4bf9752..ea77069 100644
--- a/daemon/device.h
+++ b/daemon/device.h
@@ -31,7 +31,7 @@ struct device_info {
uint16_t pid;
};
-void device_data_input(struct usb_device *dev, unsigned char *buf, int length);
+void device_data_input(struct usb_device *dev, unsigned char *buf, uint32_t length);
int device_add(struct usb_device *dev);
void device_remove(struct usb_device *dev);