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.
This commit is contained in:
uwe 2006-04-30 01:07:59 +00:00
parent 227effc121
commit ee952d9fc0

View File

@ -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)