aboutsummaryrefslogtreecommitdiff
path: root/src/util/common_endian.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2015-07-19 15:35:07 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2015-07-19 15:35:07 +0000
commita5e12b53160fbf359dd469408c600f0eb976590b (patch)
treee59bee9ea565e3f9a3f976d939d4c566f29563d5 /src/util/common_endian.c
parentbba1229ab25ed0ae236c3062e371bb97d9a05375 (diff)
downloadgnunet-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.c43
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
96uint64_t
97GNUNET_htonll_signed (int64_t n)
98{
99 return GNUNET_htonll (n - INT64_MIN);
100}
101
102
103int64_t
104GNUNET_ntohll_signed (uint64_t n)
105{
106 return GNUNET_ntohll (n) + INT64_MIN;
107}
108
109
110uint32_t
111GNUNET_htonl_signed (int32_t n)
112{
113 return htonl (n - INT32_MIN);
114}
115
116
117int32_t
118GNUNET_ntohl_signed (uint32_t n)
119{
120 return ntohl (n) + INT32_MIN;
121}
122
123
124uint16_t
125GNUNET_htons_signed (int16_t n)
126{
127 return htons (n - INT16_MIN);
128}
129
130
131int16_t
132GNUNET_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 */