maint: prefer endian.h for byte order conversions
commitfe7208b90d617267826ccef114b911b7e0df407c
authorCollin Funk <collin.funk1@gmail.com>
Sat, 29 Jun 2024 11:36:38 +0000 (29 04:36 -0700)
committerPádraig Brady <P@draigBrady.com>
Sat, 29 Jun 2024 15:11:23 +0000 (29 16:11 +0100)
tree2217bac773993e0029cf88b734d0efe9a299365c
parent7cd51438192c2c18c17611494c54ed775be645f3
maint: prefer endian.h for byte order conversions

* bootstrap.conf (gnulib_modules): Remove byteswap. Add endian.
* src/cksum.c: Include endian.h instead of byteswap.h.
(SWAP): Remove macro.
(cksum_slice8): Use htobe32 instead of SWAP.
(output_crc): Likewise.
* src/sum.c: Include endian.h instead of byteswap.h.
(SWAP): Remove macro.
(output_bsd): Use htobe16 instead of SWAP.
(output_sysv): Use htobe16 instead of SWAP.
* .gitignore: Add /lib/endian.h.
.gitignore
bootstrap.conf
src/cksum.c
src/sum.c