From ce2977ee9195612730bc8713f142c95f79605e75 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 24 Jul 2021 15:08:38 +0000 Subject: Change to cdb_find_state Signed-off-by: Laurent Bercot --- src/libs6/s6_accessrules_backend_cdb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libs6/s6_accessrules_backend_cdb.c b/src/libs6/s6_accessrules_backend_cdb.c index 49eca68..848a905 100644 --- a/src/libs6/s6_accessrules_backend_cdb.c +++ b/src/libs6/s6_accessrules_backend_cdb.c @@ -7,6 +7,7 @@ #include #include #include + #include s6_accessrules_result_t s6_accessrules_backend_cdb (char const *key, size_t keylen, void const *arg, s6_accessrules_params_t *params) @@ -15,8 +16,8 @@ s6_accessrules_result_t s6_accessrules_backend_cdb (char const *key, size_t keyl int wasnull = !params->env.s ; uint16_t envlen, execlen ; cdb const *c = arg ; - cdb_reader reader = CDB_READER_ZERO ; - int r = cdb_find(c, &reader, &data, key, keylen) ; + cdb_find_state cfs = CDB_FIND_STATE_ZERO ; + int r = cdb_find(c, &data, key, keylen, &cfs) ; if (r < 0) return S6_ACCESSRULES_ERROR ; else if (!r) return S6_ACCESSRULES_NOTFOUND ; if (!data.len || data.len > 8197) return (errno = EINVAL, S6_ACCESSRULES_ERROR) ; -- cgit v1.2.3