summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-03-24 14:56:02 +0100
committerGravatar Martin Szulecki2010-03-24 14:56:02 +0100
commit6f07a0bb701d6236dda7b19bd04df6414708dc78 (patch)
tree5fe616a32f5d6f658107d2302f9681fa55c961a1 /tools
parentc39f08af9aca0f8b86c713345e2055e408b560dd (diff)
downloadlibimobiledevice-6f07a0bb701d6236dda7b19bd04df6414708dc78.tar.gz
libimobiledevice-6f07a0bb701d6236dda7b19bd04df6414708dc78.tar.bz2
Use glib GUINT32_TO/FROM_BE macros instead of htonl/ntohl
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicesyslog.c4
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 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
-#include <netinet/in.h>
#include <signal.h>
#include <stdlib.h>
+#include <glib.h>
#include <libimobiledevice/libimobiledevice.h>
#include <libimobiledevice/lockdown.h>
@@ -118,7 +118,7 @@ int main(int argc, char *argv[])
uint32_t datalen = 0, bytes = 0, recv_bytes = 0;
ret = idevice_connection_receive(conn, (char *) &datalen, sizeof(datalen), &bytes);
- datalen = ntohl(datalen);
+ datalen = GUINT32_FROM_BE(datalen);
if (datalen == 0)
continue;