summaryrefslogtreecommitdiff
path: root/src/drivers/ipmi
diff options
context:
space:
mode:
authorPaul Menzel <pmenzel@molgen.mpg.de>2022-01-05 13:29:53 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-01-07 15:27:56 +0000
commit2dcc7224a0ca78c9f276a5367233776ba6860d18 (patch)
tree5be561564fa7a3899b4687b6f8305ee2a9001407 /src/drivers/ipmi
parent7be44d2ad6a52c59147e804ffc13a86e0fd937cb (diff)
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 <pmenzel@molgen.mpg.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60790 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/ipmi')
-rw-r--r--src/drivers/ipmi/ipmi_ops.h6
1 files 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 {