From c0b02222fd85feabb0b9901364082dc6ab484b68 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sat, 23 Jan 2010 23:09:43 +0100 Subject: Clean up packet size types and add some paranoia None of this should fix an exploit, it's just healthy paranoia. --- daemon/client.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/client.h') diff --git a/daemon/client.h b/daemon/client.h index 444fe15..60d8348 100644 --- a/daemon/client.h +++ b/daemon/client.h @@ -28,8 +28,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA struct device_info; struct mux_client; -int client_read(struct mux_client *client, void *buffer, int len); -int client_write(struct mux_client *client, void *buffer, int len); +int client_read(struct mux_client *client, void *buffer, uint32_t len); +int client_write(struct mux_client *client, void *buffer, uint32_t len); int client_set_events(struct mux_client *client, short events); void client_close(struct mux_client *client); int client_notify_connect(struct mux_client *client, enum usbmuxd_result result); -- cgit v1.1-32-gdbae