libpayload/libc: Use size_t for lengths and indices
commit5f914dc4ce08fe72ea2f2fa9553d8500255d6198
authorJacob Garber <jgarber1@ualberta.ca>
Tue, 25 Jun 2019 22:57:07 +0000 (25 16:57 -0600)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 23 Jul 2019 09:10:22 +0000 (23 09:10 +0000)
tree49bdce67fb7642699656dd61849a618b1cf57194
parentc3feebb7f525123a8e36135314838b5a9c811f3b
libpayload/libc: Use size_t for lengths and indices

size_t is the natural integer type for strlen() and array indices, and
this fixes several integer conversion and sign comparison warnings.

Change-Id: I5658b19f990de4596a602b36d9533b1ca96ad947
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33794
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
payloads/libpayload/libc/string.c