ACK: [PATCH] bios: bios_info: constify array bios_info

ivanhu ivan.hu at canonical.com
Wed Sep 6 08:19:58 UTC 2017



On 09/04/2017 08:54 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Array bios_info is readonly and static, so also constify it
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>   src/bios/bios_info/bios_info.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/bios/bios_info/bios_info.c b/src/bios/bios_info/bios_info.c
> index a9297a52..84a50791 100644
> --- a/src/bios/bios_info/bios_info.c
> +++ b/src/bios/bios_info/bios_info.c
> @@ -29,7 +29,7 @@ typedef struct {
>   	char *label;
>   } fwts_bios_info;
>   
> -static fwts_bios_info bios_info[] = {
> +static const fwts_bios_info bios_info[] = {
>   	{ "bios_vendor",	"BIOS Vendor" },
>   	{ "bios_version", 	"BIOS Version" },
>   	{ "bios_date",		"BIOS Release Date" },
> 

Acked-by: Ivan Hu <ivan.hu at canonical.com>



More information about the fwts-devel mailing list