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:
parent
e75cb331df
commit
407a279461
|
@ -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];
|
||||||
|
|
|
@ -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];
|
||||||
|
|
|
@ -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];
|
||||||
|
|
||||||
|
|
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue