diff options
author | Andre Przywara <andre.przywara@arm.com> | 2020-10-01 17:46:29 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-10-02 10:33:01 +1000 |
commit | 6c2be7d85315008be974984c0c86a8c8e55adeea (patch) | |
tree | e111f609f0956e4e4876b0f23dd5d118079e397b /libfdt/fdt_strerror.c | |
parent | 82525f41d59ec57a4e9325796a6f1baefc036236 (diff) | |
download | dtc-6c2be7d85315008be974984c0c86a8c8e55adeea.zip dtc-6c2be7d85315008be974984c0c86a8c8e55adeea.tar.gz dtc-6c2be7d85315008be974984c0c86a8c8e55adeea.tar.bz2 |
libfdt: fdt_get_string(): Fix sequential write comparison warnings
With -Wsign-compare, compilers warn about a mismatching signedness in
comparisons in fdt_get_string().
Introduce a new usigned variable, which holds the actual (negated)
stroffset value, so we avoid negating all the other variables and have
proper types everywhere.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Message-Id: <20201001164630.4980-6-andre.przywara@arm.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/fdt_strerror.c')
0 files changed, 0 insertions, 0 deletions