summaryrefslogtreecommitdiffstats
path: root/tools/iphonesyslog.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-22 14:54:40 +0100
committerGravatar Martin Szulecki2010-01-22 14:54:40 +0100
commit3183e7c96e7f66d9f0b215d549912411b146dd77 (patch)
tree557d251fe890fe0ef947a041131bad5fa7204f18 /tools/iphonesyslog.c
parent1d10605fbffd2be498afdd4621f46842b831c23f (diff)
downloadlibimobiledevice-3183e7c96e7f66d9f0b215d549912411b146dd77.tar.gz
libimobiledevice-3183e7c96e7f66d9f0b215d549912411b146dd77.tar.bz2
Rename iphone_device_recv/_send functions to use iphone_connection_* domain
These communication functions operate on an iphone_connection_t, thus their function name should reflect that.
Diffstat (limited to 'tools/iphonesyslog.c')
-rw-r--r--tools/iphonesyslog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/iphonesyslog.c b/tools/iphonesyslog.c
index 017956e..41e490f 100644
--- a/tools/iphonesyslog.c
+++ b/tools/iphonesyslog.c
@@ -117,7 +117,7 @@ int main(int argc, char *argv[])
117 char *receive = NULL; 117 char *receive = NULL;
118 uint32_t datalen = 0, bytes = 0, recv_bytes = 0; 118 uint32_t datalen = 0, bytes = 0, recv_bytes = 0;
119 119
120 ret = iphone_device_recv(conn, (char *) &datalen, sizeof(datalen), &bytes); 120 ret = iphone_connection_receive(conn, (char *) &datalen, sizeof(datalen), &bytes);
121 datalen = ntohl(datalen); 121 datalen = ntohl(datalen);
122 122
123 if (datalen == 0) 123 if (datalen == 0)
@@ -127,7 +127,7 @@ int main(int argc, char *argv[])
127 receive = (char *) malloc(sizeof(char) * datalen); 127 receive = (char *) malloc(sizeof(char) * datalen);
128 128
129 while (!quit_flag && (recv_bytes <= datalen)) { 129 while (!quit_flag && (recv_bytes <= datalen)) {
130 ret = iphone_device_recv(conn, receive, datalen, &bytes); 130 ret = iphone_connection_receive(conn, receive, datalen, &bytes);
131 131
132 if (bytes == 0) 132 if (bytes == 0)
133 break; 133 break;