diff options
author | Nikias Bassen | 2012-02-07 15:49:14 +0100 |
---|---|---|
committer | Nikias Bassen | 2012-02-07 15:49:14 +0100 |
commit | 30e6b293c60564c2016ef42830fadc58492998fa (patch) | |
tree | b239c31aec9ab2146dae3157bef4c5b01f954306 /libusbmuxd/libusbmuxd.c | |
parent | 9008cf0ef31528bf3c144af844fc70ea07699a1a (diff) | |
download | usbmuxd-30e6b293c60564c2016ef42830fadc58492998fa.tar.gz usbmuxd-30e6b293c60564c2016ef42830fadc58492998fa.tar.bz2 |
libusbmuxd: only print unexpected msg warning when hdr.length > 0
Diffstat (limited to 'libusbmuxd/libusbmuxd.c')
-rw-r--r-- | libusbmuxd/libusbmuxd.c | 2 |
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) { |