From 64776de14775e2de644c2339c990d80233b8c466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se> Date: Tue, 5 Oct 2004 23:44:28 +0200 Subject: [PATCH] (sexp_iterator_check_types): Use an argument of type "const uint8_t * const *" for the types list. (sexp_iterator_assoc): Likewise, for the keys list. Rev: src/nettle/sexp.c:1.16 Rev: src/nettle/sexp.h:1.17 --- sexp.c | 4 ++-- sexp.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sexp.c b/sexp.c index 10992821..b1dfd2e0 100644 --- a/sexp.c +++ b/sexp.c @@ -303,7 +303,7 @@ sexp_iterator_check_type(struct sexp_iterator *iterator, const uint8_t * sexp_iterator_check_types(struct sexp_iterator *iterator, unsigned ntypes, - const uint8_t **types) + const uint8_t * const *types) { if (sexp_iterator_enter_list(iterator) && iterator->type == SEXP_ATOM @@ -322,7 +322,7 @@ sexp_iterator_check_types(struct sexp_iterator *iterator, int sexp_iterator_assoc(struct sexp_iterator *iterator, unsigned nkeys, - const uint8_t **keys, + const uint8_t * const *keys, struct sexp_iterator *values) { TMP_DECL(found, int, NETTLE_MAX_SEXP_ASSOC); diff --git a/sexp.h b/sexp.h index 40d4fda3..e8547592 100644 --- a/sexp.h +++ b/sexp.h @@ -124,7 +124,7 @@ sexp_iterator_check_type(struct sexp_iterator *iterator, const uint8_t * sexp_iterator_check_types(struct sexp_iterator *iterator, unsigned ntypes, - const uint8_t **types); + const uint8_t * const *types); /* Current element must be a list. Looks up element of type * @@ -138,7 +138,7 @@ sexp_iterator_check_types(struct sexp_iterator *iterator, int sexp_iterator_assoc(struct sexp_iterator *iterator, unsigned nkeys, - const uint8_t **keys, + const uint8_t * const *keys, struct sexp_iterator *values); -- GitLab