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>
This commit is contained in:
Patrick Georgi 2019-04-04 18:05:36 +02:00
parent e75cb331df
commit 407a279461
4 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@
#include <exception.h> #include <exception.h>
#include <libpayload.h> #include <libpayload.h>
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() */ /** The argv value to pass to main() */
char *main_argv[MAX_ARGC_COUNT]; char *main_argv[MAX_ARGC_COUNT];

View File

@ -31,7 +31,7 @@
#include <libpayload.h> #include <libpayload.h>
#include <arch/mmu.h> #include <arch/mmu.h>
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() */ /** The argv value to pass to main() */
char *main_argv[MAX_ARGC_COUNT]; char *main_argv[MAX_ARGC_COUNT];

View File

@ -17,7 +17,7 @@
#include <libpayload.h> #include <libpayload.h>
/* The argc value to pass to main() */ /* The argc value to pass to main() */
unsigned int main_argc; int main_argc;
/* The argv value to pass to main() */ /* The argv value to pass to main() */
char *main_argv[MAX_ARGC_COUNT]; char *main_argv[MAX_ARGC_COUNT];

View File

@ -34,7 +34,7 @@
unsigned long loader_eax; /**< The value of EAX passed from the loader */ 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 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() */ /** The argv value to pass to main() */
char *main_argv[MAX_ARGC_COUNT]; char *main_argv[MAX_ARGC_COUNT];