summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch/x86
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2019-04-04 18:05:36 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-04-05 22:37:19 +0000
commit407a27946128ee79c16ebb14104824459af9f424 (patch)
tree912d29bec8fb4d1192feaa432aaf94d65fe17299 /payloads/libpayload/arch/x86
parente75cb331df508c98e87c9f407484667c90577e6a (diff)
libpayload: Align main() data types
One of many steps to compile with -Wconversion, as unsigned int and int aren't the same thing. BUG=b:111443775 BRANCH=none TEST=make junit.xml shows fewer warnings with -Wconversion enabled Change-Id: I9673ca70da32a1e5117b27fa89167e03379af9c1 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32183 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'payloads/libpayload/arch/x86')
-rw-r--r--payloads/libpayload/arch/x86/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/arch/x86/main.c b/payloads/libpayload/arch/x86/main.c
index 4da0bba9f7..2e876f23e9 100644
--- a/payloads/libpayload/arch/x86/main.c
+++ b/payloads/libpayload/arch/x86/main.c
@@ -34,7 +34,7 @@
unsigned long loader_eax; /**< The value of EAX passed from the loader */
unsigned long loader_ebx; /**< The value of EBX passed from the loader */
-unsigned int main_argc; /**< The argc value to pass to main() */
+int main_argc; /**< The argc value to pass to main() */
/** The argv value to pass to main() */
char *main_argv[MAX_ARGC_COUNT];