summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c4
-rw-r--r--src/usbmux.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index cd87632..ee633b6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -580,7 +580,7 @@ static void *usbmuxd_bulk_reader_thread(void *arg)
580static void *usbmuxd_client_init_thread(void *arg) 580static void *usbmuxd_client_init_thread(void *arg)
581{ 581{
582 struct client_data *cdata; 582 struct client_data *cdata;
583 struct usbmuxd_scan_request *s_req = NULL; 583 struct usbmuxd_scan_request *s_req;
584 struct usbmuxd_device_info_record dev_info_rec; 584 struct usbmuxd_device_info_record dev_info_rec;
585 struct usbmuxd_connect_request *c_req = NULL; 585 struct usbmuxd_connect_request *c_req = NULL;
586 586
@@ -941,7 +941,7 @@ static void *usbmuxd_client_init_thread(void *arg)
941 cur_dev = NULL; 941 cur_dev = NULL;
942 if (device_count > 1) { 942 if (device_count > 1) {
943 struct device_info **newlist; 943 struct device_info **newlist;
944 int j; 944 int j = 0;
945 945
946 newlist = 946 newlist =
947 (struct device_info **) 947 (struct device_info **)
diff --git a/src/usbmux.c b/src/usbmux.c
index dd3ac1a..ed23278 100644
--- a/src/usbmux.c
+++ b/src/usbmux.c
@@ -428,7 +428,7 @@ int usbmux_get_specific_device(int bus_n, int dev_n,
428int usbmux_free_device(usbmux_device_t device) 428int usbmux_free_device(usbmux_device_t device)
429{ 429{
430 char buf[512]; 430 char buf[512];
431 int bytes; 431 int bytes = -1;
432 432
433 if (!device) 433 if (!device)
434 return -EINVAL; 434 return -EINVAL;