diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-24 09:59:08 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-10-24 09:59:08 +0000 |
| commit | 37d2f8cb438f68eaa1da8a56ea9ce5023091f128 (patch) | |
| tree | 81672ad4254ea18e7d240230ba47ef6743d491ad /src/libtipidee/tipidee_conf_get_argv.c | |
| parent | 907f1c64369095b5b2d5f6fb23a8b937720d94cc (diff) | |
| download | tipidee-37d2f8cb438f68eaa1da8a56ea9ce5023091f128.tar.gz | |
Full custom header support, switch not made yet
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee/tipidee_conf_get_argv.c')
| -rw-r--r-- | src/libtipidee/tipidee_conf_get_argv.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <errno.h> +#include <stdint.h> #include <string.h> #include <skalibs/cdb.h> @@ -9,11 +10,11 @@ #include <skalibs/posixishard.h> -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) |
