[PATCH] D17751: [DFSan] Fix test_inet_pton for big endian archs
Ed Schouten via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 29 22:59:36 PST 2016
ed added a subscriber: ed.
ed added a comment.
I think that the preferred way of normally doing this is by using the `htonl()` function provided by `<arpa/inet.h>`:
assert(in4.s_addr == htonl(0x7f000001);
There is no need to explicitly take the byte ordering of the architecture into account.
Repository:
rL LLVM
http://reviews.llvm.org/D17751
More information about the llvm-commits
mailing list