1. Mathias Brossard
  2. jsmn

Commits

Serge A. Zaitsev  committed b0e793d

Fix: errpos has got a correct type now

  • Participants
  • Parent commits 32aeac7
  • Branches default

Comments (0)

Files changed (2)

File jsmn.c

View file
 struct jsmn_params {
 	jsontok_t *tokens;
 	size_t num_tokens;
-	int **errpos;
+	int *errpos;
 };
 
 /**
 	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;
 

File jsmn.h

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