}
char *host = NULL, *port = NULL, *address = NULL;
- sockaddr2str((const sockaddr_t *) & (edges[i].address), &host, &port);
+ sockaddr2str((const sockaddr_t *)&edges[i].address, &host, &port);
if(host && port) {
xasprintf(&address, "{ \"host\": \"%s\", \"port\": %s }", host, port);
status->options = internal->options;
memcpy(&status->status, &internal->status, sizeof status->status);
- status->address = internal->address;
+ memcpy(&status->address, &internal->address, sizeof status->address);
status->mtu = internal->mtu;
status->minmtu = internal->minmtu;
status->maxmtu = internal->maxmtu;