CLEANUP: protocol: remove the now unused <handler> field of proto_fam->bind()
We don't need to specify the handler anymore since it's set in the
receiver. Let's remove this argument from the function and clean up
the remains of code that were still setting it.
diff --git a/src/protocol.c b/src/protocol.c
index 18ca40a..8ea36cb 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -65,7 +65,6 @@
struct receiver *receiver;
char msg[100];
char *errmsg;
- void *handler;
int err, lerr;
err = 0;
@@ -74,12 +73,7 @@
list_for_each_entry(receiver, &proto->receivers, proto_list) {
listener = LIST_ELEM(receiver, struct listener *, rx);
- /* FIXME: horrible hack, we don't have a way to register
- * a handler when creating the receiver yet, so we still
- * have to take care of special cases here.
- */
- handler = listener->rx.iocb;
- lerr = proto->fam->bind(receiver, handler, &errmsg);
+ lerr = proto->fam->bind(receiver, &errmsg);
err |= lerr;
/* errors are reported if <verbose> is set or if they are fatal */