[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] vl: constify default_list
|
From: |
marcandre . lureau |
|
Subject: |
[PATCH] vl: constify default_list |
|
Date: |
Mon, 30 Oct 2023 14:15:29 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
It's not modified, let's make it const.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
system/vl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/vl.c b/system/vl.c
index 86dd2dce28..f42ccfa216 100644
--- a/system/vl.c
+++ b/system/vl.c
@@ -194,7 +194,7 @@ static int default_sdcard = 1;
static int default_vga = 1;
static int default_net = 1;
-static struct {
+static const struct {
const char *driver;
int *flag;
} default_list[] = {
--
2.41.0
- [PATCH] vl: constify default_list,
marcandre . lureau <=