X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=examples%2Fchatpp.cc;h=294ca866f602fb692eb6e37c39b8c817a07fd950;hb=1622803438b8c4bfff50bedfae6cd809e27fa075;hp=10870ef55a85b635a725dfbecf2cca31fcf49f94;hpb=668664d0ea90dc81670cccd7b7d56b36b8360eaa;p=meshlink diff --git a/examples/chatpp.cc b/examples/chatpp.cc index 10870ef5..294ca866 100644 --- a/examples/chatpp.cc +++ b/examples/chatpp.cc @@ -49,7 +49,7 @@ static void parse_command(meshlink::mesh *mesh, char *buf) { return; } - invitation = mesh->invite(arg); + invitation = mesh->invite(NULL, arg); if(!invitation) { fprintf(stderr, "Could not invite '%s': %s\n", arg, meshlink::strerror()); @@ -99,7 +99,7 @@ static void parse_command(meshlink::mesh *mesh, char *buf) { if(!nodes) { fprintf(stderr, "Could not get list of nodes: %s\n", meshlink::strerror()); } else { - printf("%zu known nodes:", nnodes); + printf("%lu known nodes:", (unsigned long)nnodes); for(size_t i = 0; i < nnodes; i++) { printf(" %s", nodes[i]->name);