diff options
author | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-21 10:56:51 -0600 |
---|---|---|
committer | Lloyd Hilaiel <lloyd@hilaiel.com> | 2011-04-21 13:58:28 -0600 |
commit | 9813127163116b7f928c383f14bb8618675a9694 (patch) | |
tree | 66fbf6ebf56d9bbe75095f5b97bab7fc22b2115e /verify | |
parent | 0858bb341280956947df1cfae33eb5ac6ecfe6f7 (diff) | |
download | yajl-9813127163116b7f928c383f14bb8618675a9694.tar.gz |
rename yajl_parse_complete to yajl_complete_parse. the latter is correctly an imperative, while the former might be confused for a question.
Diffstat (limited to 'verify')
-rw-r--r-- | verify/json_verify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/verify/json_verify.c b/verify/json_verify.c index ea09cdf..8668e9f 100644 --- a/verify/json_verify.c +++ b/verify/json_verify.c @@ -43,7 +43,7 @@ main(int argc, char ** argv) int retval = 0; int allowComments = 0; int checkUTF8 = 1; - + /* check arguments.*/ int a = 1; while ((a < argc) && (argv[a][0] == '-') && (strlen(argv[a]) > 1)) { @@ -98,8 +98,8 @@ main(int argc, char ** argv) } /* parse any remaining buffered data */ - stat = yajl_parse_complete(hand); - + stat = yajl_complete_parse(hand); + if (stat != yajl_status_ok) { if (!quiet) { |