diff options
| author | 2010-03-24 14:56:02 +0100 | |
|---|---|---|
| committer | 2010-03-24 14:56:02 +0100 | |
| commit | 6f07a0bb701d6236dda7b19bd04df6414708dc78 (patch) | |
| tree | 5fe616a32f5d6f658107d2302f9681fa55c961a1 /tools/idevicesyslog.c | |
| parent | c39f08af9aca0f8b86c713345e2055e408b560dd (diff) | |
| download | libimobiledevice-6f07a0bb701d6236dda7b19bd04df6414708dc78.tar.gz libimobiledevice-6f07a0bb701d6236dda7b19bd04df6414708dc78.tar.bz2 | |
Use glib GUINT32_TO/FROM_BE macros instead of htonl/ntohl
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; |
