]> git.meshlink.io Git - meshlink/commitdiff
Fix meshlink::channel_open().
authorGuus Sliepen <guus@sliepen.org>
Mon, 28 Jul 2014 14:21:17 +0000 (16:21 +0200)
committerGuus Sliepen <guus@sliepen.org>
Mon, 28 Jul 2014 14:21:17 +0000 (16:21 +0200)
src/meshlink++.h

index a1911affbdb1d949049e343b5cae5a4d732f0391..c8bdc2f9aa5cfd4ff2ce3b87236fda0dd8eac444 100644 (file)
@@ -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.