From 6f07a0bb701d6236dda7b19bd04df6414708dc78 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 24 Mar 2010 14:56:02 +0100 Subject: Use glib GUINT32_TO/FROM_BE macros instead of htonl/ntohl --- tools/idevicesyslog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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 #include #include -#include #include #include +#include #include #include @@ -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; -- cgit v1.1-32-gdbae