From 34b8e4d575876ace41b91fb6e25a5fa9f9290608 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 19 May 2009 12:44:19 +0200 Subject: lockdown: Check for gnutls errors and silence compiler warnings. general: Removed some commented-out code. [#39 state:resolved] Signed-off-by: Matt Colyer --- dev/syslog_relay.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'dev') 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"); } -- cgit v1.1-32-gdbae