summaryrefslogtreecommitdiffstats
path: root/libusbmuxd
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-02-07 15:49:14 +0100
committerGravatar Nikias Bassen2012-02-07 15:49:14 +0100
commit30e6b293c60564c2016ef42830fadc58492998fa (patch)
treeb239c31aec9ab2146dae3157bef4c5b01f954306 /libusbmuxd
parent9008cf0ef31528bf3c144af844fc70ea07699a1a (diff)
downloadusbmuxd-30e6b293c60564c2016ef42830fadc58492998fa.tar.gz
usbmuxd-30e6b293c60564c2016ef42830fadc58492998fa.tar.bz2
libusbmuxd: only print unexpected msg warning when hdr.length > 0
Diffstat (limited to 'libusbmuxd')
-rw-r--r--libusbmuxd/libusbmuxd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c
index a6a8c86..861eefc 100644
--- a/libusbmuxd/libusbmuxd.c
+++ b/libusbmuxd/libusbmuxd.c
@@ -567,7 +567,7 @@ int get_next_event(int sfd, usbmuxd_event_cb_t callback, void *user_data)
collection_remove(&devices, devinfo);
free(devinfo);
}
- } else {
+ } else if (hdr.length > 0) {
fprintf(stderr, "%s: Unexpected message type %d length %d received!\n", __func__, hdr.message, hdr.length);
}
if (payload) {