[PATCH] bios: multiproc: constify array bus_types

Colin King colin.king at canonical.com
Mon Sep 4 12:57:58 UTC 2017


From: Colin Ian King <colin.king at canonical.com>

array bus_types is static and read-only, so make it also const

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/bios/multiproc/mpcheck.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bios/multiproc/mpcheck.c b/src/bios/multiproc/mpcheck.c
index 24941f15..9927e4f5 100644
--- a/src/bios/multiproc/mpcheck.c
+++ b/src/bios/multiproc/mpcheck.c
@@ -147,7 +147,7 @@ static int mpcheck_test_cpu_entries(fwts_framework *fw)
 	return FWTS_OK;
 }
 
-static char *bus_types[] = {
+static const char *const bus_types[] = {
 	"CBUS",
 	"CBUSII",
 	"EISA",
-- 
2.14.1




More information about the fwts-devel mailing list