projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make json_error_t transparent again
[jansson.git]
/
test
/
bin
/
json_process.c
diff --git
a/test/bin/json_process.c
b/test/bin/json_process.c
index
671127a
..
cff820b
100644
(file)
--- a/
test/bin/json_process.c
+++ b/
test/bin/json_process.c
@@
-31,7
+31,7
@@
int main(int argc, char *argv[])
size_t flags = 0;
json_t *json;
size_t flags = 0;
json_t *json;
- json_error_t
*
error;
+ json_error_t error;
if(argc != 1) {
fprintf(stderr, "usage: %s\n", argv[0]);
if(argc != 1) {
fprintf(stderr, "usage: %s\n", argv[0]);
@@
-61,10
+61,7
@@
int main(int argc, char *argv[])
json = json_loadf(stdin, 0, &error);
if(!json) {
json = json_loadf(stdin, 0, &error);
if(!json) {
- fprintf(stderr, "%d\n%s\n",
- json_error_line(error),
- json_error_msg(error));
- free(error);
+ fprintf(stderr, "%d\n%s\n", error.line, error.text);
return 1;
}
return 1;
}