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_sockpair.c b/src/proto_sockpair.c
index c77308f..d46fa27 100644
--- a/src/proto_sockpair.c
+++ b/src/proto_sockpair.c
@@ -70,8 +70,8 @@
.listen = sockpair_bind_listener,
.pause = NULL,
.add = sockpair_add_listener,
- .listeners = LIST_HEAD_INIT(proto_sockpair.listeners),
- .nb_listeners = 0,
+ .receivers = LIST_HEAD_INIT(proto_sockpair.receivers),
+ .nb_receivers = 0,
};
INITCALL1(STG_REGISTER, protocol_register, &proto_sockpair);
@@ -89,8 +89,8 @@
return;
listener_set_state(listener, LI_ASSIGNED);
listener->rx.proto = &proto_sockpair;
- LIST_ADDQ(&proto_sockpair.listeners, &listener->rx.proto_list);
- proto_sockpair.nb_listeners++;
+ LIST_ADDQ(&proto_sockpair.receivers, &listener->rx.proto_list);
+ proto_sockpair.nb_receivers++;
}
/* Binds receiver <rx>, and assigns <handler> and rx->owner as the callback and