Commit 64776de1 authored by Niels Möller's avatar Niels Möller

(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
parent 0fa80515
...@@ -303,7 +303,7 @@ sexp_iterator_check_type(struct sexp_iterator *iterator, ...@@ -303,7 +303,7 @@ sexp_iterator_check_type(struct sexp_iterator *iterator,
const uint8_t * const uint8_t *
sexp_iterator_check_types(struct sexp_iterator *iterator, sexp_iterator_check_types(struct sexp_iterator *iterator,
unsigned ntypes, unsigned ntypes,
const uint8_t **types) const uint8_t * const *types)
{ {
if (sexp_iterator_enter_list(iterator) if (sexp_iterator_enter_list(iterator)
&& iterator->type == SEXP_ATOM && iterator->type == SEXP_ATOM
...@@ -322,7 +322,7 @@ sexp_iterator_check_types(struct sexp_iterator *iterator, ...@@ -322,7 +322,7 @@ sexp_iterator_check_types(struct sexp_iterator *iterator,
int int
sexp_iterator_assoc(struct sexp_iterator *iterator, sexp_iterator_assoc(struct sexp_iterator *iterator,
unsigned nkeys, unsigned nkeys,
const uint8_t **keys, const uint8_t * const *keys,
struct sexp_iterator *values) struct sexp_iterator *values)
{ {
TMP_DECL(found, int, NETTLE_MAX_SEXP_ASSOC); TMP_DECL(found, int, NETTLE_MAX_SEXP_ASSOC);
......
...@@ -124,7 +124,7 @@ sexp_iterator_check_type(struct sexp_iterator *iterator, ...@@ -124,7 +124,7 @@ sexp_iterator_check_type(struct sexp_iterator *iterator,
const uint8_t * const uint8_t *
sexp_iterator_check_types(struct sexp_iterator *iterator, sexp_iterator_check_types(struct sexp_iterator *iterator,
unsigned ntypes, unsigned ntypes,
const uint8_t **types); const uint8_t * const *types);
/* Current element must be a list. Looks up element of type /* Current element must be a list. Looks up element of type
* *
...@@ -138,7 +138,7 @@ sexp_iterator_check_types(struct sexp_iterator *iterator, ...@@ -138,7 +138,7 @@ sexp_iterator_check_types(struct sexp_iterator *iterator,
int int
sexp_iterator_assoc(struct sexp_iterator *iterator, sexp_iterator_assoc(struct sexp_iterator *iterator,
unsigned nkeys, unsigned nkeys,
const uint8_t **keys, const uint8_t * const *keys,
struct sexp_iterator *values); struct sexp_iterator *values);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment