Reduce issues with types by switching iosz and totalsz from off_t to size_t.
authorclaudio <claudio@openbsd.org>
Mon, 12 Jun 2023 15:27:52 +0000 (15:27 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 12 Jun 2023 15:27:52 +0000 (15:27 +0000)
commitaf6f8e1c3b00fdf1c2b5a91b227753de64ac62e4
tree28f7c2ff0c46a26fdfef7664e4dfac0587c55a49
parent78bab303fa6b62877fa23e78559884ff5e3274b2
Reduce issues with types by switching iosz and totalsz from off_t to size_t.
In rpki-client the maximum file size is limited to 2GB so even on 32bit
archs size_t is large enough.
This solves some of the signed vs unsigned issues between bufsz/bufpos
and iosz.
OK tb@
usr.sbin/rpki-client/http.c