From 2dcc7224a0ca78c9f276a5367233776ba6860d18 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 5 Jan 2022 13:29:53 +0100 Subject: [PATCH] drivers/ipmi: Change type of custom_count from int to size_t The variable `custom_count` is the number of custom fields, so only holds non-negative values, so change the struct member type from int to size_t. Change-Id: Ic35aafefc870092298523ba2e10adf4fcb687a01 Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/c/coreboot/+/60790 Reviewed-by: Angel Pons Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/drivers/ipmi/ipmi_ops.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/ipmi/ipmi_ops.h b/src/drivers/ipmi/ipmi_ops.h index 60983b4568..d900272e38 100644 --- a/src/drivers/ipmi/ipmi_ops.h +++ b/src/drivers/ipmi/ipmi_ops.h @@ -111,7 +111,7 @@ struct fru_product_info { char *asset_tag; char *fru_file_id; char **product_custom; - int custom_count; /* Number of custom fields */ + size_t custom_count; /* Number of custom fields */ }; struct fru_board_info { @@ -121,7 +121,7 @@ struct fru_board_info { char *part_number; char *fru_file_id; char **board_custom; - int custom_count; + size_t custom_count; }; struct fru_chassis_info { @@ -129,7 +129,7 @@ struct fru_chassis_info { char *chassis_partnumber; char *serial_number; char **chassis_custom; - int custom_count; + size_t custom_count; }; struct fru_info_str {