diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2012-03-31 22:49:58 -0500 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2012-03-31 22:49:58 -0500 |
commit | 1489b081a729d055579471d6b0906274c4e7b8af (patch) | |
tree | 3ed579c17928b1758a94fb17d22311bb2cc1f8e3 /json_tokener.h | |
parent | 6ff0817bac01f070dbae172df0bb01d617e2fae2 (diff) |
For the prototype for json_tokener_error_desc().
Diffstat (limited to 'json_tokener.h')
-rw-r--r-- | json_tokener.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/json_tokener.h b/json_tokener.h index be7f87d..d104c75 100644 --- a/json_tokener.h +++ b/json_tokener.h @@ -88,13 +88,13 @@ struct json_tokener * * @return a generic error message is returned if an invalid error value is provided. */ -const char *json_tokeners_errors(enum json_tokener_error jerr); +const char *json_tokener_error_desc(enum json_tokener_error jerr); /** * @b XXX do not use json_tokener_errors directly. * After v0.10 this will be removed. * - * See json_tokeners_errors() instead. + * See json_tokener_error_desc() instead. */ extern const char* json_tokener_errors[]; @@ -162,7 +162,7 @@ do { } while ((jerr = json_tokener_get_error(tok)) == json_tokener_continue); if (jerr != json_tokener_success) { - fprintf(stderr, "Error: %s\n", json_tokener_errors[jerr]); + fprintf(stderr, "Error: %s\n", json_tokener_error_desc(jerr)); // Handle errors, as appropriate for your application. } if (tok->char_offset < stringlen) // XXX shouldn't access internal fields |