summaryrefslogtreecommitdiffstats
path: root/dev
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-05-19 12:44:19 +0200
committerGravatar Matt Colyer2009-05-19 07:29:06 -0700
commit34b8e4d575876ace41b91fb6e25a5fa9f9290608 (patch)
treec8d762b433aea558ea50e49541d08910c8ae5ad9 /dev
parentb3fb2a8948b561a8df8356dfcc26a1d87c1d73dd (diff)
downloadlibimobiledevice-34b8e4d575876ace41b91fb6e25a5fa9f9290608.tar.gz
libimobiledevice-34b8e4d575876ace41b91fb6e25a5fa9f9290608.tar.bz2
lockdown: Check for gnutls errors and silence compiler warnings. general: Removed some commented-out code.
[#39 state:resolved] Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'dev')
-rw-r--r--dev/syslog_relay.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dev/syslog_relay.c b/dev/syslog_relay.c
index 35c684a..6fc981b 100644
--- a/dev/syslog_relay.c
+++ b/dev/syslog_relay.c
@@ -104,11 +104,8 @@ int main(int argc, char *argv[])
ret = iphone_lckd_start_service(control, "com.apple.syslog_relay", &port);
if ((ret == IPHONE_E_SUCCESS) && port) {
/* connect to socket relay messages */
- //iphone_umux_client_t syslog_client = NULL;
- //ret = iphone_mux_new_client(phone, 514, port, &syslog_client);
int sfd = usbmuxd_connect(iphone_get_device_handle(phone), port);
- //if (ret == IPHONE_E_SUCCESS) {
if (sfd < 0) {
printf("ERROR: Could not open usbmux connection.\n");
} else {
@@ -139,7 +136,7 @@ int main(int argc, char *argv[])
free(receive);
}
}
- usbmuxd_disconnect(sfd); //iphone_mux_free_client(syslog_client);
+ usbmuxd_disconnect(sfd);
} else {
printf("ERROR: Could not start service com.apple.syslog_relay.\n");
}