From b99663079c1542e514f0ca8056cd87cb3683bd7e Mon Sep 17 00:00:00 2001 From: "Serge A. Zaitsev" Date: Mon, 15 Nov 2010 17:59:51 +0200 Subject: [PATCH] Fix: errpos has got a correct type now --- jsmn.c | 4 ++-- jsmn.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jsmn.c b/jsmn.c index bdaa49c..7057bc8 100644 --- a/jsmn.c +++ b/jsmn.c @@ -5,7 +5,7 @@ struct jsmn_params { jsontok_t *tokens; size_t num_tokens; - int **errpos; + int *errpos; }; /** @@ -98,7 +98,7 @@ static jsontok_t *jsmn_token_end(struct jsmn_params *params, jsontype_t type, in return NULL; } -int jsmn_parse(const unsigned char *js, jsontok_t *tokens, size_t num_tokens, int **errpos) { +int jsmn_parse(const unsigned char *js, jsontok_t *tokens, size_t num_tokens, int *errpos) { struct jsmn_params params; diff --git a/jsmn.h b/jsmn.h index ed7c1b1..12dd9fd 100644 --- a/jsmn.h +++ b/jsmn.h @@ -33,6 +33,6 @@ typedef struct { * Run JSON parser. It parses a JSON data string into and array of tokens, each describing * a single JSON object. */ -int jsmn_parse(const unsigned char *js, jsontok_t *tokens, size_t num_tokens, int **errpos); +int jsmn_parse(const unsigned char *js, jsontok_t *tokens, size_t num_tokens, int *errpos); #endif /* __JSMN_H_ */