From a5e12b53160fbf359dd469408c600f0eb976590b Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Sun, 19 Jul 2015 15:35:07 +0000 Subject: Remove this GNUNET_htonl_signed nonsense --- src/util/common_endian.c | 43 ------------------------------------------- 1 file changed, 43 deletions(-) (limited to 'src/util/common_endian.c') diff --git a/src/util/common_endian.c b/src/util/common_endian.c index 81f9a79e8..45707f4ef 100644 --- a/src/util/common_endian.c +++ b/src/util/common_endian.c @@ -93,47 +93,4 @@ GNUNET_ntoh_double (double d) } -uint64_t -GNUNET_htonll_signed (int64_t n) -{ - return GNUNET_htonll (n - INT64_MIN); -} - - -int64_t -GNUNET_ntohll_signed (uint64_t n) -{ - return GNUNET_ntohll (n) + INT64_MIN; -} - - -uint32_t -GNUNET_htonl_signed (int32_t n) -{ - return htonl (n - INT32_MIN); -} - - -int32_t -GNUNET_ntohl_signed (uint32_t n) -{ - return ntohl (n) + INT32_MIN; -} - - -uint16_t -GNUNET_htons_signed (int16_t n) -{ - return htons (n - INT16_MIN); -} - - -int16_t -GNUNET_ntohs_signed (uint16_t n) -{ - return ntohs (n) + INT16_MIN; -} - - - /* end of common_endian.c */ -- cgit v1.2.3