summaryrefslogtreecommitdiff
path: root/sexp.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2016-08-16 07:28:23 +0200
committerNiels Möller <nisse@lysator.liu.se>2016-08-16 07:30:16 +0200
commit2a65d90b0bb01cad7f827858741901b1e1ee65fe (patch)
tree83fd51d7de77aff655e5d7d8d5a473546dfa8b62 /sexp.c
parentef97526d169ea115735a17dd8c37f5f10b45e240 (diff)
downloadnettle-2a65d90b0bb01cad7f827858741901b1e1ee65fe.tar.gz
Use const char * for sexp expression types.
Diffstat (limited to 'sexp.c')
-rw-r--r--sexp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sexp.c b/sexp.c
index 4073d683..eb8da633 100644
--- a/sexp.c
+++ b/sexp.c
@@ -295,7 +295,7 @@ sexp_iterator_get_uint32(struct sexp_iterator *iterator,
int
sexp_iterator_check_type(struct sexp_iterator *iterator,
- const uint8_t *type)
+ const char *type)
{
return (sexp_iterator_enter_list(iterator)
&& iterator->type == SEXP_ATOM
@@ -305,10 +305,10 @@ sexp_iterator_check_type(struct sexp_iterator *iterator,
&& sexp_iterator_next(iterator));
}
-const uint8_t *
+const char *
sexp_iterator_check_types(struct sexp_iterator *iterator,
unsigned ntypes,
- const uint8_t * const *types)
+ const char * const *types)
{
if (sexp_iterator_enter_list(iterator)
&& iterator->type == SEXP_ATOM
@@ -327,7 +327,7 @@ sexp_iterator_check_types(struct sexp_iterator *iterator,
int
sexp_iterator_assoc(struct sexp_iterator *iterator,
unsigned nkeys,
- const uint8_t * const *keys,
+ const char * const *keys,
struct sexp_iterator *values)
{
TMP_DECL(found, int, NETTLE_MAX_SEXP_ASSOC);