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_ */