REORG: listener: move the listening address to a struct receiver
The address will be specific to the receiver so let's move it there.
diff --git a/src/proto_uxst.c b/src/proto_uxst.c
index ac2fb53..33768a1 100644
--- a/src/proto_uxst.c
+++ b/src/proto_uxst.c
@@ -112,7 +112,7 @@
if (listener->fd == -1)
listener->fd = sock_find_compatible_fd(listener);
- path = ((struct sockaddr_un *)&listener->addr)->sun_path;
+ path = ((struct sockaddr_un *)&listener->rx.addr)->sun_path;
maxpathlen = MIN(MAXPATHLEN, sizeof(addr.sun_path));
@@ -316,7 +316,7 @@
*/
static int uxst_pause_listener(struct listener *l)
{
- if (((struct sockaddr_un *)&l->addr)->sun_path[0])
+ if (((struct sockaddr_un *)&l->rx.addr)->sun_path[0])
return 1;
/* Listener's lock already held. Call lockless version of