qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hw/i386/multiboot: Make bootloader_name static
@ 2024-02-05 21:51 Jens Nyberg
  0 siblings, 0 replies; only message in thread
From: Jens Nyberg @ 2024-02-05 21:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jens Nyberg

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 <jens.nyberg@gmail.com>
---
 hw/i386/multiboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/i386/multiboot.c b/hw/i386/multiboot.c
index 3332712ab3..6bf6398d01 100644
--- a/hw/i386/multiboot.c
+++ b/hw/i386/multiboot.c
@@ -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)
 {
-- 
2.43.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-05 21:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-05 21:51 [PATCH] hw/i386/multiboot: Make bootloader_name static Jens Nyberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).