hw/i386/multiboot: Make bootloader_name static
PATCH 1/1 hw/i386/multiboot: Make bootloader_name static
Global variable is only used in a single file and should therefor be set to static in order to avoid name collisions.
Signed-off-by Jens Nyberg <[email protected]>
--- hw/i386/multiboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/i386/multiboot.c +1 -1
@@ -102,7 +102,7 @@ typedef struct {int mb_mods_count; } MultibootState; -const char *bootloader_name ="qemu" ; +static const char *bootloader_name ="qemu" ;static uint32_t mb_add_cmdline (MultibootState *s,const char *cmdline) {
Signature · 1 line
2.43.0