summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/libusbmuxd.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-09-05 16:05:10 +0200
committerGravatar Nikias Bassen2009-09-05 16:05:10 +0200
commit3227a118296a2e8cfac15e701b0422ae15c8196f (patch)
tree9522a9793a533e47ad5418301e2bf364b37158b0 /libusbmuxd/libusbmuxd.c
parent3460b9db79e08a25534b04582eb7b7329c89a28d (diff)
downloadusbmuxd-3227a118296a2e8cfac15e701b0422ae15c8196f.tar.gz
usbmuxd-3227a118296a2e8cfac15e701b0422ae15c8196f.tar.bz2
Silence 64-bit compiler warnings.
Diffstat (limited to 'libusbmuxd/libusbmuxd.c')
-rw-r--r--libusbmuxd/libusbmuxd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c
index 8be5c4a..584e930 100644
--- a/libusbmuxd/libusbmuxd.c
+++ b/libusbmuxd/libusbmuxd.c
@@ -187,7 +187,7 @@ int get_next_event(int sfd, usbmuxd_event_cb_t callback, void *user_data)
}
if (hdr.length != sizeof(struct usbmuxd_header)+sizeof(struct usbmuxd_device_record)) {
- fprintf(stderr, "WARNING: unexpected packet size%d for MESSAGE_DEVICE_ADD (expected %d)!\n", hdr.length, sizeof(struct usbmuxd_header)+sizeof(struct usbmuxd_device_record));
+ fprintf(stderr, "WARNING: unexpected packet size%d for MESSAGE_DEVICE_ADD (expected %d)!\n", hdr.length, (int)(sizeof(struct usbmuxd_header)+sizeof(struct usbmuxd_device_record)));
}
recv_len = recv_buf_timeout(sfd, &dev, hdr.length - sizeof(struct usbmuxd_header), 0, 5000);
if (recv_len != (hdr.length - sizeof(struct usbmuxd_header))) {
@@ -207,7 +207,7 @@ int get_next_event(int sfd, usbmuxd_event_cb_t callback, void *user_data)
usbmuxd_device_info_t *dev;
if (hdr.length != sizeof(struct usbmuxd_header)+sizeof(uint32_t)) {
- fprintf(stderr, "WARNING: unexpected packet size%d for MESSAGE_DEVICE_REMOVE (expected %d)!\n", hdr.length, sizeof(struct usbmuxd_header)+sizeof(uint32_t));
+ fprintf(stderr, "WARNING: unexpected packet size%d for MESSAGE_DEVICE_REMOVE (expected %d)!\n", hdr.length, (int)(sizeof(struct usbmuxd_header)+sizeof(uint32_t)));
}
recv_len = recv_buf_timeout(sfd, &handle, sizeof(uint32_t), 0, 5000);
if (recv_len != sizeof(uint32_t)) {