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:
parent
227effc121
commit
ee952d9fc0
4
dist/iscsi/include/util.h
vendored
4
dist/iscsi/include/util.h
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user