From: Guus Sliepen Date: Mon, 28 Jul 2014 14:21:17 +0000 (+0200) Subject: Fix meshlink::channel_open(). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=910be17dc450337127e8a146a575ac98a42bdd9d;p=meshlink Fix meshlink::channel_open(). --- diff --git a/src/meshlink++.h b/src/meshlink++.h index a1911aff..c8bdc2f9 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -319,7 +319,7 @@ namespace meshlink { * @return A handle for the channel, or NULL in case of an error. */ channel *channel_open(node *node, uint16_t port, channel_receive_cb_t cb, const void *data, size_t len) { - return (channel *)meshlink_channel_open(this, node, port, (meshlink_channel_receive_cb_t)recv, data, len); + return (channel *)meshlink_channel_open(this, node, port, (meshlink_channel_receive_cb_t)cb, data, len); } /// Partially close a reliable stream channel.