diff options
Diffstat (limited to 'tools/idevicesyslog.c')
| -rw-r--r-- | tools/idevicesyslog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 32b9711..dcd8df6 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c | |||
| @@ -22,9 +22,9 @@ | |||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <string.h> | 23 | #include <string.h> |
| 24 | #include <errno.h> | 24 | #include <errno.h> |
| 25 | #include <netinet/in.h> | ||
| 26 | #include <signal.h> | 25 | #include <signal.h> |
| 27 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 27 | #include <glib.h> | ||
| 28 | 28 | ||
| 29 | #include <libimobiledevice/libimobiledevice.h> | 29 | #include <libimobiledevice/libimobiledevice.h> |
| 30 | #include <libimobiledevice/lockdown.h> | 30 | #include <libimobiledevice/lockdown.h> |
| @@ -118,7 +118,7 @@ int main(int argc, char *argv[]) | |||
| 118 | uint32_t datalen = 0, bytes = 0, recv_bytes = 0; | 118 | uint32_t datalen = 0, bytes = 0, recv_bytes = 0; |
| 119 | 119 | ||
| 120 | ret = idevice_connection_receive(conn, (char *) &datalen, sizeof(datalen), &bytes); | 120 | ret = idevice_connection_receive(conn, (char *) &datalen, sizeof(datalen), &bytes); |
| 121 | datalen = ntohl(datalen); | 121 | datalen = GUINT32_FROM_BE(datalen); |
| 122 | 122 | ||
| 123 | if (datalen == 0) | 123 | if (datalen == 0) |
| 124 | continue; | 124 | continue; |
