ppc/amigaone: Constify default_env
PATCH 1/1 ppc/amigaone: Constify default_env
The variable holding default env is not supposed to be written.
Signed-off-by BALATON Zoltan <[email protected]>
--- hw/ppc/amigaone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ppc/amigaone.c +1 -1
@@ -63,7 +63,7 @@ static const char dummy_fw[] = {#define NVRAM_ADDR 0xfd0e0000#define NVRAM_SIZE (4 * KiB) -static char default_env[] = +static const char default_env[] ="baudrate=115200\0" "stdout=vga\0" "stdin=ps2kbd\0"
Signature · 1 line
2.41.3
Quoted 3 lines · BALATON Zoltan
The variable holding default env is not supposed to be written.
Signed-off-by BALATON Zoltan <[email protected]>
Reviewed-by Nicholas Piggin <[email protected]>
Quoted 17 lines
--- hw/ppc/amigaone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/ppc/amigaone.c +1
-1@@ -63,7 +63,7 @@ static const char dummy_fw[] = {#define NVRAM_ADDR 0xfd0e0000#define NVRAM_SIZE (4 * KiB) -static char default_env[] = +static const char default_env[] ="baudrate=115200\0" "stdout=vga\0" "stdin=ps2kbd\0"
Quoted 6 lines · BALATON Zoltan
The variable holding default env is not supposed to be written.
Signed-off-by BALATON Zoltan <[email protected]>--- hw/ppc/amigaone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>