summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/libusbmuxd.c
diff options
context:
space:
mode:
authorGravatar Hector Martin2010-01-23 23:07:19 +0100
committerGravatar Hector Martin2010-01-24 00:20:01 +0100
commit11a0f473b5c12a6c0105e8b785e6744d8f23aee3 (patch)
treec04881041dc4a48fdd4c1b008b213c42904d09ad /libusbmuxd/libusbmuxd.c
parente52f09541559aec86bd43bb0a914bafc9153c2de (diff)
downloadusbmuxd-11a0f473b5c12a6c0105e8b785e6744d8f23aee3.tar.gz
usbmuxd-11a0f473b5c12a6c0105e8b785e6744d8f23aee3.tar.bz2
Clean up libusbmuxd warnings
Diffstat (limited to 'libusbmuxd/libusbmuxd.c')
-rw-r--r--libusbmuxd/libusbmuxd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c
index c5d0331..b532f7d 100644
--- a/libusbmuxd/libusbmuxd.c
+++ b/libusbmuxd/libusbmuxd.c
@@ -136,7 +136,6 @@ static int usbmuxd_listen()
int sfd;
uint32_t res = -1;
struct usbmuxd_listen_request req;
- struct usbmuxd_header hdr;
req.header.length = sizeof(struct usbmuxd_listen_request);
req.header.version = USBMUXD_PROTOCOL_VERSION;
@@ -179,13 +178,12 @@ static int usbmuxd_listen()
int get_next_event(int sfd, usbmuxd_event_cb_t callback, void *user_data)
{
int recv_len;
- struct usbmuxd_listen_request req;
struct usbmuxd_header hdr;
/* block until we receive something */
recv_len = recv_buf_timeout(sfd, &hdr, sizeof(hdr), 0, 0);
if (recv_len < 0) {
- int i;
+ fprintf(stderr, "DEBUG: connection closed.\n");
// when then usbmuxd connection fails,
// generate remove events for every device that
// is still present so applications know about it