From 976166f5b3cbdd238538fba6d275af8ad7e49e6a Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Wed, 21 May 2014 19:29:04 +0200 Subject: [PATCH] meshlinkapp: fix compiler warnings --- examples/meshlinkapp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/meshlinkapp.c b/examples/meshlinkapp.c index 44644a23..f506c964 100644 --- a/examples/meshlinkapp.c +++ b/examples/meshlinkapp.c @@ -3,7 +3,7 @@ #include "../src/meshlink.h" void handle_recv_data(meshlink_handle_t *mesh, meshlink_node_t *source, void *data, size_t len) { - printf("Received %zu bytes from %s: %s\n", len, source->name, data); + printf("Received %zu bytes from %s: %s\n", len, source->name, (char*)data); } int main(int argc , char **argv){ @@ -17,7 +17,7 @@ int main(int argc , char **argv){ myhandle = meshlink_open(confbase, name); //Register callback function for incoming data - meshlink_set_receive_cb(myhandle, handle_recv_data); + meshlink_set_receive_cb(myhandle, (meshlink_receive_cb_t)handle_recv_data); meshlink_start(myhandle); -- 2.39.5