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

amqp: fix compiler warning about unused return value

This commit is contained in:
Steffen Vogel 2018-06-16 21:29:28 +02:00
parent da8f9bb1b0
commit ac77d7eb85

View file

@ -154,7 +154,7 @@ int amqp_parse(struct node *n, json_t *json)
if (uri)
a->uri = strdup(uri);
else
asprintf(&a->uri, "amqp://%s:%s@%s:%d/%s", username, password, host, port, vhost);
a->uri = strf("amqp://%s:%s@%s:%d/%s", username, password, host, port, vhost);
ret = amqp_parse_url(a->uri, &a->connection_info);