From d1fe26b145e5afb50289c42d0a104b06a0639839 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 4 Nov 2024 14:32:39 +0000 Subject: [PATCH] libkmod: convert index_{,mm_}value to uint32_t ... Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/224 Signed-off-by: Lucas De Marchi --- libkmod/libkmod-index.c | 6 +++--- libkmod/libkmod-index.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index 46a40793..e9387a6c 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c @@ -146,7 +146,7 @@ void index_values_free(struct index_value *values) } static int add_value(struct index_value **values, const char *value, size_t len, - unsigned int priority) + uint32_t priority) { struct index_value *v; @@ -270,7 +270,7 @@ static struct index_node_f *index_read(struct index_file *idx, uint32_t offset) node->values = NULL; if (offset & INDEX_NODE_VALUES) { uint32_t value_count; - unsigned int priority; + uint32_t priority; if (!read_u32(fp, &value_count)) goto err; @@ -609,7 +609,7 @@ struct index_mm { }; struct index_mm_value { - unsigned int priority; + uint32_t priority; size_t len; const char *value; }; diff --git a/libkmod/libkmod-index.h b/libkmod/libkmod-index.h index 25b1b74b..1fbbd491 100644 --- a/libkmod/libkmod-index.h +++ b/libkmod/libkmod-index.h @@ -9,7 +9,7 @@ struct index_value { struct index_value *next; - unsigned int priority; + uint32_t priority; size_t len; char value[0]; }; -- 2.47.2