Fix: errpos has got a correct type now

master
Serge A. Zaitsev 14 years ago
parent b0e73ec44d
commit b99663079c

@ -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;

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

Loading…
Cancel
Save