From b70895cf367100792263f04d97a7533b26c5ece3 Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Sat, 9 Aug 2014 16:26:16 +0200 Subject: [PATCH] manynodes example: trivial, change debug levels --- examples/manynodes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/manynodes.c b/examples/manynodes.c index 18299d9b..96aa5f0f 100644 --- a/examples/manynodes.c +++ b/examples/manynodes.c @@ -37,11 +37,9 @@ static void testmesh () { printf("%zu known nodes:\n", nnodes); for(int i = 0; i < nnodes; i++) { //printf(" %s\n", nodes[i]->name); - if (nindex != i) { if(!meshlink_send(mesh[nindex], nodes[i], "magic", strlen("magic") + 1)) { fprintf(stderr, "Could not send message to '%s': %s\n", nodes[i]->name, meshlink_strerror(meshlink_errno)); } - } } } @@ -234,7 +232,7 @@ int main(int argc, char *argv[]) { mesh = calloc(n, sizeof *mesh); - meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_message); + meshlink_set_log_cb(NULL, MESHLINK_INFO, log_message); mkdir(basebase, 0750); char filename[PATH_MAX]; -- 2.39.5