summaryrefslogtreecommitdiffstats
path: root/tools/iphonesyslog.c
diff options
context:
space:
mode:
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;