Skip to content

Instantly share code, notes, and snippets.

@haya14busa
Created August 28, 2016 15:25
Show Gist options
  • Select an option

  • Save haya14busa/ef9e63da1b30e77ea5b0e7e9e1b7a71a to your computer and use it in GitHub Desktop.

Select an option

Save haya14busa/ef9e63da1b30e77ea5b0e7e9e1b7a71a to your computer and use it in GitHub Desktop.
cb of channel of job
diff --git a/src/channel.c b/src/channel.c
index 7488574..81c43a5 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -3456,7 +3456,7 @@ send_common(
EMSG2(_("E917: Cannot use a callback with %s()"), fun);
return NULL;
}
- channel_set_req_callback(channel, part_send,
+ channel_set_req_callback(channel, *part_read,
opt->jo_callback, opt->jo_partial, id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment