projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples: add shunit2 tests for json_script
[project/libubox.git]
/
examples
/
json_script-example.c
diff --git
a/examples/json_script-example.c
b/examples/json_script-example.c
index e3305ded72d2d513c6bcd9c1cb6521da7d9644f3..4d252a9a6bd2c4fe8aab657956de356ed65fda37 100644
(file)
--- a/
examples/json_script-example.c
+++ b/
examples/json_script-example.c
@@
-16,10
+16,10
@@
static void handle_command(struct json_script_ctx *ctx, const char *name,
struct blob_attr *cur;
int rem;
struct blob_attr *cur;
int rem;
- fprintf(std
err, "Command:
%s", name);
+ fprintf(std
out, "
%s", name);
blobmsg_for_each_attr(cur, data, rem)
blobmsg_for_each_attr(cur, data, rem)
- fprintf(std
err
, " %s", (char *) blobmsg_data(cur));
- fprintf(std
err
, "\n");
+ fprintf(std
out
, " %s", (char *) blobmsg_data(cur));
+ fprintf(std
out
, "\n");
}
static struct json_script_file *
}
static struct json_script_file *