From 910be17dc450337127e8a146a575ac98a42bdd9d Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 28 Jul 2014 16:21:17 +0200 Subject: [PATCH] Fix meshlink::channel_open(). --- src/meshlink++.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5