not sure how that compiled..

This commit is contained in:
Andrew Pamment 2018-05-23 22:16:02 +10:00
parent bf0a86b776
commit 99a7223a0a

View File

@ -109,7 +109,7 @@ int parse_config_file(char *filename) {
if (strncasecmp(buffer, "MYNODE", 6) == 0) { if (strncasecmp(buffer, "MYNODE", 6) == 0) {
trimwhitespace(bufferw, 256, &buffer[7]); trimwhitespace(bufferw, 256, &buffer[7]);
mynode = atoi(bufferw); mynode = atoi(bufferw);
} else if (strncasecmp, "IMHUB", 5 == 0) { } else if (strncasecmp(buffer, "IMHUB", 5) == 0) {
trimwhitespace(bufferw, 256, &buffer[6]); trimwhitespace(bufferw, 256, &buffer[6]);
if (strcasecmp(bufferw, "TRUE") == 0) { if (strcasecmp(bufferw, "TRUE") == 0) {
imhub = 1; imhub = 1;
@ -287,7 +287,7 @@ int export_messages(int area) {
msg.area = areas[area]->id; msg.area = areas[area]->id;
if (areas[area]->hub == mynode) { if (areas[area]->hub == mynode) {
for (n = 0; n < areas[area]->link_count; n++) { for (n = 0; n < areas[area]->link_count; n++) {
if (imhub) { if (imhub) {
snprintf(buffer, PATH_MAX, "%s/%d/", baseoutdir, areas[area]->links[n]); snprintf(buffer, PATH_MAX, "%s/%d/", baseoutdir, areas[area]->links[n]);