From 99a7223a0a977c2c151c2f86a462d30dbfb8a089 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Wed, 23 May 2018 22:16:02 +1000 Subject: [PATCH] not sure how that compiled.. --- utils/mnetscan/mnetscan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/mnetscan/mnetscan.c b/utils/mnetscan/mnetscan.c index 82265a4..e0cc9d8 100644 --- a/utils/mnetscan/mnetscan.c +++ b/utils/mnetscan/mnetscan.c @@ -109,7 +109,7 @@ int parse_config_file(char *filename) { if (strncasecmp(buffer, "MYNODE", 6) == 0) { trimwhitespace(bufferw, 256, &buffer[7]); mynode = atoi(bufferw); - } else if (strncasecmp, "IMHUB", 5 == 0) { + } else if (strncasecmp(buffer, "IMHUB", 5) == 0) { trimwhitespace(bufferw, 256, &buffer[6]); if (strcasecmp(bufferw, "TRUE") == 0) { imhub = 1; @@ -287,7 +287,7 @@ int export_messages(int area) { msg.area = areas[area]->id; - if (areas[area]->hub == mynode) { + if (areas[area]->hub == mynode) { for (n = 0; n < areas[area]->link_count; n++) { if (imhub) { snprintf(buffer, PATH_MAX, "%s/%d/", baseoutdir, areas[area]->links[n]);