Skip to content

Commit

Permalink
Merge pull request #296
Browse files Browse the repository at this point in the history
7ff4854 json: Change error code type to integer (Niklas Claesson)
  • Loading branch information
douglasbakkum committed Oct 29, 2019
2 parents 1527ce3 + 7ff4854 commit 012d929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ int json_format_error(char *out, size_t len, const char *cmd, const char *msg, i
GEN_CHECK(yajl_gen_string(g, (const uint8_t *)"message", sizeof("message") - 1), g);
GEN_CHECK(yajl_gen_string(g, (const uint8_t *)msg, strlens(msg)), g);
GEN_CHECK(yajl_gen_string(g, (const uint8_t *)"code", sizeof("code") - 1), g);
GEN_CHECK(yajl_gen_string(g, (const uint8_t *)flag_code(flag), strlens(flag_code(flag))),
GEN_CHECK(yajl_gen_number(g, flag_code(flag), strlens(flag_code(flag))),
g);
GEN_CHECK(yajl_gen_string(g, (const uint8_t *)"command", sizeof("command") - 1), g);
GEN_CHECK(yajl_gen_string(g, (const uint8_t *)cmd, strlens(cmd)), g);
Expand Down

0 comments on commit 012d929

Please sign in to comment.