summaryrefslogtreecommitdiffstats
path: root/tools/idevicesyslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicesyslog.c')
-rw-r--r--tools/idevicesyslog.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c
index 73dd8e1..a17999c 100644
--- a/tools/idevicesyslog.c
+++ b/tools/idevicesyslog.c
@@ -45,7 +45,7 @@ static void clean_exit(int sig)
int main(int argc, char *argv[])
{
lockdownd_client_t client = NULL;
- idevice_t phone = NULL;
+ idevice_t device = NULL;
idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
int i;
const char* udid = NULL;
@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
}
}
- ret = idevice_new(&phone, udid);
+ ret = idevice_new(&device, udid);
if (ret != IDEVICE_E_SUCCESS) {
if (udid) {
printf("No device found with udid %s, is it plugged in?\n", udid);
@@ -93,8 +93,8 @@ int main(int argc, char *argv[])
return -1;
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "idevicesyslog")) {
- idevice_free(phone);
+ if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &client, "idevicesyslog")) {
+ idevice_free(device);
return -1;
}
@@ -105,7 +105,7 @@ int main(int argc, char *argv[])
/* connect to socket relay messages */
idevice_connection_t conn = NULL;
- if ((idevice_connect(phone, port, &conn) != IDEVICE_E_SUCCESS) || !conn) {
+ if ((idevice_connect(device, port, &conn) != IDEVICE_E_SUCCESS) || !conn) {
printf("ERROR: Could not open usbmux connection.\n");
} else {
while (!quit_flag) {
@@ -126,7 +126,7 @@ int main(int argc, char *argv[])
printf("ERROR: Could not start service com.apple.syslog_relay.\n");
}
- idevice_free(phone);
+ idevice_free(device);
return 0;
}