config: Adjust return type with function name

Function with `parse_uint32` should return uint32_t value

Signed-off-by: Karol Trzcinski <karolx.trzcinski@intel.com>
This commit is contained in:
Karol Trzcinski 2021-08-31 11:14:01 +02:00 committed by Liam Girdwood
parent c4a7456254
commit de9177b841
1 changed files with 2 additions and 2 deletions

View File

@ -169,8 +169,8 @@ static uint32_t parse_uint32_hex_key(const toml_table_t *table, struct parse_ctx
* @param error code, 0 when success
* @return default, parsed, or UINT32_MAX value
*/
static int parse_uint32_key(const toml_table_t *table, struct parse_ctx *ctx, const char *key,
int64_t def, int *error)
static uint32_t parse_uint32_key(const toml_table_t *table, struct parse_ctx *ctx, const char *key,
int64_t def, int *error)
{
toml_raw_t raw;
int64_t val;