diff options
author | Hector Martin | 2010-01-23 23:09:43 +0100 |
---|---|---|
committer | Hector Martin | 2010-01-24 00:20:01 +0100 |
commit | c0b02222fd85feabb0b9901364082dc6ab484b68 (patch) | |
tree | e465e0a29a24431c67feb35529912214f8d1308f /daemon/client.h | |
parent | 68729a347011a8fb39f1e4aa35ae06c4f2f491d4 (diff) | |
download | usbmuxd-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/client.h')
-rw-r--r-- | daemon/client.h | 4 |
1 files changed, 2 insertions, 2 deletions
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); |