1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

minor fixes and cleanups for new nanomsg and zeromq node-types

This commit is contained in:
Steffen Vogel 2017-05-28 19:43:19 +02:00
parent 31ca905013
commit ace03b657e
2 changed files with 4 additions and 4 deletions

View file

@ -123,7 +123,7 @@ char * nanomsg_print(struct node *n)
strcatf(&buf, "%s ", ep);
}
strcatf(&buf, " ]");
strcatf(&buf, "]");
return buf;
}

View file

@ -196,7 +196,7 @@ char * zeromq_print(struct node *n)
strcatf(&buf, "%s ", ep);
}
strcatf(&buf, " ]");
strcatf(&buf, "]");
if (z->filter)
strcatf(&buf, ", filter=%s", z->filter);
@ -323,14 +323,14 @@ int zeromq_start(struct node *n)
char *ep = list_at(&z->publisher.endpoints, i);
ret = zmq_bind(z->publisher.socket, ep);
if (ret)
if (ret < 0)
goto fail;
}
/* Connect subscribers to server socket */
if (z->subscriber.endpoint) {
ret = zmq_connect(z->subscriber.socket, z->subscriber.endpoint);
if (ret) {
if (ret < 0) {
info("Failed to bind ZeroMQ socket: endpoint=%s, error=%s", z->subscriber.endpoint, zmq_strerror(errno));
return ret;
}