X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Fcommon_endian.c;h=45707f4ef70f14f8d4abb1df0fd6602b642438cf;hb=572ed5a20edf2e273ae377473b52bfee98eca24e;hp=e6c34250affef1a287e60e0991d6674e1f4e3721;hpb=93fba12ad8159dc6b683f9e7ce9f0528a11047f5;p=oweals%2Fgnunet.git diff --git a/src/util/common_endian.c b/src/util/common_endian.c index e6c34250a..45707f4ef 100644 --- a/src/util/common_endian.c +++ b/src/util/common_endian.c @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with GNUnet; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ /** @@ -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 */