X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=examples%2Fchatpp.cc;h=294ca866f602fb692eb6e37c39b8c817a07fd950;hb=4b6c01b1d5383b1a7417244a31ad4652aab2d5db;hp=d3690404fc2869b3b8998c849eb5484b193b5382;hpb=43d8f901c4bbb693643bb6f188c97dd28c1d0b0a;p=meshlink diff --git a/examples/chatpp.cc b/examples/chatpp.cc index d3690404..294ca866 100644 --- a/examples/chatpp.cc +++ b/examples/chatpp.cc @@ -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);