summaryrefslogtreecommitdiff
path: root/jsmn.c
diff options
context:
space:
mode:
authorSerge A. Zaitsev <devnull@localhost>2010-11-15 17:59:51 +0200
committerSerge A. Zaitsev <devnull@localhost>2010-11-15 17:59:51 +0200
commitb99663079c1542e514f0ca8056cd87cb3683bd7e (patch)
tree9dadcc622e18fd07af0dcae578135bbfe80f7814 /jsmn.c
parentb0e73ec44dc2693b6be327c01b905193f153df4c (diff)
Fix: errpos has got a correct type now
Diffstat (limited to 'jsmn.c')
-rw-r--r--jsmn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsmn.c b/jsmn.c
index bdaa49c5e..7057bc811 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;