diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-11-07 09:39:19 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-11-07 09:39:19 +0100 |
commit | 52efbc3a23fd62640177c96a14df76c42a1b462c (patch) | |
tree | 101f9fb804a0a4b0f0e6cf9b38d06308a3fc4701 /src/misc.c | |
parent | 639dc3b5fd298b952dd5a7880ae89d448547d353 (diff) | |
download | libssh-52efbc3a23fd62640177c96a14df76c42a1b462c.tar.gz libssh-52efbc3a23fd62640177c96a14df76c42a1b462c.tar.xz libssh-52efbc3a23fd62640177c96a14df76c42a1b462c.zip |
misc: Use simpler macros for htonll and ntohll
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -290,23 +290,6 @@ int ssh_is_ipaddr(const char *str) { #endif /* _WIN32 */ -#ifndef HAVE_NTOHLL -uint64_t ntohll(uint64_t a) { -#ifdef WORDS_BIGENDIAN - return a; -#else /* WORDS_BIGENDIAN */ - return (((uint64_t)(a) << 56) | \ - (((uint64_t)(a) << 40) & 0xff000000000000ULL) | \ - (((uint64_t)(a) << 24) & 0xff0000000000ULL) | \ - (((uint64_t)(a) << 8) & 0xff00000000ULL) | \ - (((uint64_t)(a) >> 8) & 0xff000000ULL) | \ - (((uint64_t)(a) >> 24) & 0xff0000ULL) | \ - (((uint64_t)(a) >> 40) & 0xff00ULL) | \ - ((uint64_t)(a) >> 56)); -#endif /* WORDS_BIGENDIAN */ -} -#endif /* HAVE_NTOHLL */ - char *ssh_lowercase(const char* str) { char *new, *p; |