summaryrefslogtreecommitdiffstats
path: root/tools/idevicesyslog.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-11-29 04:02:18 +0100
committerGravatar Nikias Bassen2012-11-29 04:02:18 +0100
commit14bacd927e8621d723a3d67c49f43a0485c3eff4 (patch)
tree7937869319b864201dfa5b82361b52df71cc1258 /tools/idevicesyslog.c
parentd28cb6b2b85bbaf97ae361aba531865e5bcaa898 (diff)
downloadlibimobiledevice-14bacd927e8621d723a3d67c49f43a0485c3eff4.tar.gz
libimobiledevice-14bacd927e8621d723a3d67c49f43a0485c3eff4.tar.bz2
tools: mass replace 'device' with 'phone' variable names
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)
45int main(int argc, char *argv[]) 45int main(int argc, char *argv[])
46{ 46{
47 lockdownd_client_t client = NULL; 47 lockdownd_client_t client = NULL;
48 idevice_t phone = NULL; 48 idevice_t device = NULL;
49 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; 49 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
50 int i; 50 int i;
51 const char* udid = NULL; 51 const char* udid = NULL;
@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
83 } 83 }
84 } 84 }
85 85
86 ret = idevice_new(&phone, udid); 86 ret = idevice_new(&device, udid);
87 if (ret != IDEVICE_E_SUCCESS) { 87 if (ret != IDEVICE_E_SUCCESS) {
88 if (udid) { 88 if (udid) {
89 printf("No device found with udid %s, is it plugged in?\n", udid); 89 printf("No device found with udid %s, is it plugged in?\n", udid);
@@ -93,8 +93,8 @@ int main(int argc, char *argv[])
93 return -1; 93 return -1;
94 } 94 }
95 95
96 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "idevicesyslog")) { 96 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &client, "idevicesyslog")) {
97 idevice_free(phone); 97 idevice_free(device);
98 return -1; 98 return -1;
99 } 99 }
100 100
@@ -105,7 +105,7 @@ int main(int argc, char *argv[])
105 105
106 /* connect to socket relay messages */ 106 /* connect to socket relay messages */
107 idevice_connection_t conn = NULL; 107 idevice_connection_t conn = NULL;
108 if ((idevice_connect(phone, port, &conn) != IDEVICE_E_SUCCESS) || !conn) { 108 if ((idevice_connect(device, port, &conn) != IDEVICE_E_SUCCESS) || !conn) {
109 printf("ERROR: Could not open usbmux connection.\n"); 109 printf("ERROR: Could not open usbmux connection.\n");
110 } else { 110 } else {
111 while (!quit_flag) { 111 while (!quit_flag) {
@@ -126,7 +126,7 @@ int main(int argc, char *argv[])
126 printf("ERROR: Could not start service com.apple.syslog_relay.\n"); 126 printf("ERROR: Could not start service com.apple.syslog_relay.\n");
127 } 127 }
128 128
129 idevice_free(phone); 129 idevice_free(device);
130 130
131 return 0; 131 return 0;
132} 132}