LRN's patch argument order
[oweals/gnunet.git] / src / util / common_endian.c
index 5d7aa50d5cb2cb337693fc7b6e3eaddd781e91c2..34a1dbf549238543916f1dac06b3fc2cf803dae7 100644 (file)
 
 #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 n)
 {
 #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
 }