diff options
| author | 2009-05-19 12:44:19 +0200 | |
|---|---|---|
| committer | 2009-05-19 07:29:06 -0700 | |
| commit | 34b8e4d575876ace41b91fb6e25a5fa9f9290608 (patch) | |
| tree | c8d762b433aea558ea50e49541d08910c8ae5ad9 /dev | |
| parent | b3fb2a8948b561a8df8356dfcc26a1d87c1d73dd (diff) | |
| download | libimobiledevice-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.c | 5 |
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[]) | |||
| 104 | ret = iphone_lckd_start_service(control, "com.apple.syslog_relay", &port); | 104 | ret = iphone_lckd_start_service(control, "com.apple.syslog_relay", &port); |
| 105 | if ((ret == IPHONE_E_SUCCESS) && port) { | 105 | if ((ret == IPHONE_E_SUCCESS) && port) { |
| 106 | /* connect to socket relay messages */ | 106 | /* connect to socket relay messages */ |
| 107 | //iphone_umux_client_t syslog_client = NULL; | ||
| 108 | 107 | ||
| 109 | //ret = iphone_mux_new_client(phone, 514, port, &syslog_client); | ||
| 110 | int sfd = usbmuxd_connect(iphone_get_device_handle(phone), port); | 108 | int sfd = usbmuxd_connect(iphone_get_device_handle(phone), port); |
| 111 | //if (ret == IPHONE_E_SUCCESS) { | ||
| 112 | if (sfd < 0) { | 109 | if (sfd < 0) { |
| 113 | printf("ERROR: Could not open usbmux connection.\n"); | 110 | printf("ERROR: Could not open usbmux connection.\n"); |
| 114 | } else { | 111 | } else { |
| @@ -139,7 +136,7 @@ int main(int argc, char *argv[]) | |||
| 139 | free(receive); | 136 | free(receive); |
| 140 | } | 137 | } |
| 141 | } | 138 | } |
| 142 | usbmuxd_disconnect(sfd); //iphone_mux_free_client(syslog_client); | 139 | usbmuxd_disconnect(sfd); |
| 143 | } else { | 140 | } else { |
| 144 | printf("ERROR: Could not start service com.apple.syslog_relay.\n"); | 141 | printf("ERROR: Could not start service com.apple.syslog_relay.\n"); |
| 145 | } | 142 | } |
