]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
elfctl: Fix type errors.
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 23 Jan 2021 10:45:51 +0000 (12:45 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Sat, 23 Jan 2021 15:24:32 +0000 (17:24 +0200)
commit9940ac808de7b7d4ed0408c3e739f667dca06d3b
tree3c4a6699dc707c98b46bca3a4ac353687b8d93cd
parentaa8c1f8d84d2638a354e71f9593e978d00878243
elfctl: Fix type errors.

Target value for val has uint32_t type, not uint, adjust used constant.
Change val type to unsigned so that left and right sides of comparision
operator do not expose different signed types of same range [*].

Switch to unsigned long long and strtoll(3) so that 0x80000000 is
accepted by conversion function [**].

Reported by: kargl [*]
Noted by: emaste [**]
Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28301
usr.bin/elfctl/elfctl.c