MINOR: protocol: rename the ->listeners field to ->receivers
Since the listeners were split into receiver+listener, this field ought
to have been renamed because it's confusing. It really links receivers
and not listeners, as most of the time it's used via rx.proto_list!
The nb_listeners field was updated accordingly.
diff --git a/src/proto_uxst.c b/src/proto_uxst.c
index 96d96b3..2610927 100644
--- a/src/proto_uxst.c
+++ b/src/proto_uxst.c
@@ -58,8 +58,8 @@
.listen = uxst_bind_listener,
.pause = uxst_pause_listener,
.add = uxst_add_listener,
- .listeners = LIST_HEAD_INIT(proto_unix.listeners),
- .nb_listeners = 0,
+ .receivers = LIST_HEAD_INIT(proto_unix.receivers),
+ .nb_receivers = 0,
};
INITCALL1(STG_REGISTER, protocol_register, &proto_unix);
@@ -142,8 +142,8 @@
return;
listener_set_state(listener, LI_ASSIGNED);
listener->rx.proto = &proto_unix;
- LIST_ADDQ(&proto_unix.listeners, &listener->rx.proto_list);
- proto_unix.nb_listeners++;
+ LIST_ADDQ(&proto_unix.receivers, &listener->rx.proto_list);
+ proto_unix.nb_receivers++;
}
/* Pause a listener. Returns < 0 in case of failure, 0 if the listener