]> git.meshlink.io Git - meshlink/commitdiff
Adjust the callback to meshlink_receive_cb_t
authorSaverio Proto <zioproto@gmail.com>
Wed, 23 Apr 2014 22:01:01 +0000 (00:01 +0200)
committerSaverio Proto <zioproto@gmail.com>
Wed, 23 Apr 2014 22:01:01 +0000 (00:01 +0200)
src/route.c

index d999d11eaf5fa495b03900379a163f62dbfecce8..0eb39aafd7611e4edfa6aac05fc4afb899f8ae40 100644 (file)
@@ -75,7 +75,7 @@ void route(node_t *source,vpn_packet_t *packet) {
     if (owner == mesh->self ) {
     //TODO: implement sending received data from meshlink library to the application
     logger(DEBUG_TRAFFIC, LOG_WARNING, "I received a packet for me with payload: %s \n", packet->data + sizeof *hdr);
-    (recv_callback)(packet->data + sizeof *hdr);
+    (meshlink_receive_cb_t)(packet->data + sizeof *hdr);
     return;
     }