Reduce number of msg callback typedefs

This commit is contained in:
Nicolas Williams committed 2015-02-13 15:58:02 -06:00
1 parent 0d414471bb
commit a83a9e0bc2
5 files changed
+17 -18

No files matched your search

+2 -2
View File
@@ -895,11 +895,11 @@ static jv f_input(jq_state *jq, jv input) {
}
static jv f_debug(jq_state *jq, jv input) {
jq_debug_cb cb;
jq_msg_cb cb;
void *data;
jq_get_debug_cb(jq, &cb, &data);
if (cb != NULL)
cb(jq, data, jv_copy(input));
cb(data, jv_copy(input));
return input;
}