diff options
author | Andre Przywara <andre.przywara@arm.com> | 2020-09-21 17:52:50 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-12-14 16:00:44 +0100 |
commit | 00125807e2ed75e32d6c655ffae7fe155e471f9b (patch) | |
tree | 1a839d76ee8cb6fb4021b747780878c426d39f82 /cpukit/dtc/libfdt/fdt_ro.c | |
parent | libfdt: fix fdt_check_node_offset_ w/ VALID_INPUT (diff) | |
download | rtems-00125807e2ed75e32d6c655ffae7fe155e471f9b.tar.bz2 |
libfdt: fdt_offset_ptr(): Fix comparison warnings
With -Wsign-compare, compilers warn about mismatching signedness in
comparisons in fdt_offset_ptr().
This mostly stems from "offset" being passed in as a signed integer,
even though the function would not really tolerate negative values.
Short of changing the prototype, check that offset is not negative, and
use an unsigned type internally.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Message-Id: <20200921165303.9115-2-andre.przywara@arm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'cpukit/dtc/libfdt/fdt_ro.c')
0 files changed, 0 insertions, 0 deletions