diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2015-07-19 15:35:07 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2015-07-19 15:35:07 +0000 |
commit | a5e12b53160fbf359dd469408c600f0eb976590b (patch) | |
tree | e59bee9ea565e3f9a3f976d939d4c566f29563d5 /src/util/common_endian.c | |
parent | bba1229ab25ed0ae236c3062e371bb97d9a05375 (diff) | |
download | gnunet-a5e12b53160fbf359dd469408c600f0eb976590b.tar.gz gnunet-a5e12b53160fbf359dd469408c600f0eb976590b.zip |
Remove this GNUNET_htonl_signed nonsense
Diffstat (limited to 'src/util/common_endian.c')
-rw-r--r-- | src/util/common_endian.c | 43 |
1 files changed, 0 insertions, 43 deletions
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) | |||
93 | } | 93 | } |
94 | 94 | ||
95 | 95 | ||
96 | uint64_t | ||
97 | GNUNET_htonll_signed (int64_t n) | ||
98 | { | ||
99 | return GNUNET_htonll (n - INT64_MIN); | ||
100 | } | ||
101 | |||
102 | |||
103 | int64_t | ||
104 | GNUNET_ntohll_signed (uint64_t n) | ||
105 | { | ||
106 | return GNUNET_ntohll (n) + INT64_MIN; | ||
107 | } | ||
108 | |||
109 | |||
110 | uint32_t | ||
111 | GNUNET_htonl_signed (int32_t n) | ||
112 | { | ||
113 | return htonl (n - INT32_MIN); | ||
114 | } | ||
115 | |||
116 | |||
117 | int32_t | ||
118 | GNUNET_ntohl_signed (uint32_t n) | ||
119 | { | ||
120 | return ntohl (n) + INT32_MIN; | ||
121 | } | ||
122 | |||
123 | |||
124 | uint16_t | ||
125 | GNUNET_htons_signed (int16_t n) | ||
126 | { | ||
127 | return htons (n - INT16_MIN); | ||
128 | } | ||
129 | |||
130 | |||
131 | int16_t | ||
132 | GNUNET_ntohs_signed (uint16_t n) | ||
133 | { | ||
134 | return ntohs (n) + INT16_MIN; | ||
135 | } | ||
136 | |||
137 | |||
138 | |||
139 | /* end of common_endian.c */ | 96 | /* end of common_endian.c */ |