Android O MR1 IOT Release 1.0.7 (5157592)
Replace htonl with htobe32.

htonl is supposed to be defined in arpa/inet.h, not endian.h. This code
compiles thanks to non-standard endian.h. Being stricter helps make it
more portable.

It would be possible to switch header files instead of switching
functions, but htobe64 is used elsewhere in the code. There is no
"network" function for 64-bit types. It seems slightly cleaner to be
consistent naming things "big endian" rather than mixing terms.

Bug: 110161494
Change-Id: I9b66b967c587d7c0853631d1fbb12e2e41c7d1b2
2 files changed