aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_endian.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-06 13:54:18 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-06 13:54:18 +0000
commit22dca01af96e22856387eb6993b3d357f30ffb1c (patch)
treea47c4110437209b6a4a104f0a5cf4af0569a0143 /src/util/common_endian.c
parent176763b1ac81a2116c1b81a308e52026714f8edf (diff)
use uint64_t instead of long long for GNUNET_ntohll/GNUNET_htonll
Diffstat (limited to 'src/util/common_endian.c')
-rw-r--r--src/util/common_endian.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/common_endian.c b/src/util/common_endian.c
index 5d7aa50d5c..f4641445d0 100644
--- a/src/util/common_endian.c
+++ b/src/util/common_endian.c
@@ -29,23 +29,23 @@
#define LOG(kind,...) GNUNET_log_from (kind, "util",__VA_ARGS__)
-unsigned long long
-GNUNET_ntohll (unsigned long long n)
+uint64_t
+GNUNET_ntohll (uint64_t)
{
#if __BYTE_ORDER == __BIG_ENDIAN
return n;
#else
- return (((unsigned long long) ntohl (n)) << 32) + ntohl (n >> 32);
+ return (((uint64_t) ntohl (n)) << 32) + ntohl (n >> 32);
#endif
}
-unsigned long long
-GNUNET_htonll (unsigned long long n)
+uint64_t
+GNUNET_htonll (uint64_t n)
{
#if __BYTE_ORDER == __BIG_ENDIAN
return n;
#else
- return (((unsigned long long) htonl (n)) << 32) + htonl (n >> 32);
+ return (((uint64_t) htonl (n)) << 32) + htonl (n >> 32);
#endif
}