From 37d2f8cb438f68eaa1da8a56ea9ce5023091f128 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 24 Oct 2023 09:59:08 +0000 Subject: Full custom header support, switch not made yet Signed-off-by: Laurent Bercot --- src/libtipidee/tipidee_conf_get_argv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/libtipidee/tipidee_conf_get_argv.c') diff --git a/src/libtipidee/tipidee_conf_get_argv.c b/src/libtipidee/tipidee_conf_get_argv.c index 0dd016e..79c24e6 100644 --- a/src/libtipidee/tipidee_conf_get_argv.c +++ b/src/libtipidee/tipidee_conf_get_argv.c @@ -1,6 +1,7 @@ /* ISC license. */ #include +#include #include #include @@ -9,11 +10,11 @@ #include -unsigned int tipidee_conf_get_argv (tipidee_conf const *conf, char const *key, char const **argv, unsigned int max, size_t *maxlen) +uint32_t tipidee_conf_get_argv (tipidee_conf const *conf, char const *key, char const **argv, uint32_t max, size_t *maxlen) { cdb_data data ; - size_t curlen = 0 ; - unsigned int n = 0, pos = 0 ; + size_t curlen = 0, pos = 0 ; + uint32_t n = 0 ; if (!tipidee_conf_get(conf, key, &data)) return 0 ; if (data.s[data.len-1]) return (errno = EPROTO, 0) ; while (pos < data.len) -- cgit v1.3.1