From ee952d9fc0f696c266560923d5570bfddad77de2 Mon Sep 17 00:00:00 2001 From: uwe Date: Sun, 30 Apr 2006 01:07:59 +0000 Subject: [PATCH] Use be64toh/htobe64 instead of upper-case versions. Thanks to lint that caught this on big-endian arches. Little-endian compiled, but I guess that converting your loop counter into big-endian inside the loop is not exactly what you want to do. --- dist/iscsi/include/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/iscsi/include/util.h b/dist/iscsi/include/util.h index 5da60095abf5..77ef981932a9 100644 --- a/dist/iscsi/include/util.h +++ b/dist/iscsi/include/util.h @@ -167,8 +167,8 @@ void iscsi_print_buffer(const char *, const size_t); #define __BIG_ENDIAN _BIG_ENDIAN #define __LITTLE_ENDIAN _LITTLE_ENDIAN -#define ISCSI_NTOHLL(x) BE64TOH(x) -#define ISCSI_HTONLL(x) HTOBE64(x) +#define ISCSI_NTOHLL(x) be64toh(x) +#define ISCSI_HTONLL(x) htobe64(x) #define ISCSI_NTOHL(a) ntohl(a) #define ISCSI_HTONL(a) htonl(a) #define ISCSI_NTOHS(a) ntohs(a)