summaryrefslogtreecommitdiff
path: root/zyklonb.c
diff options
context:
space:
mode:
Diffstat (limited to 'zyklonb.c')
-rw-r--r--zyklonb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zyklonb.c b/zyklonb.c
index 8f8bcda..ef7b8a6 100644
--- a/zyklonb.c
+++ b/zyklonb.c
@@ -1151,7 +1151,7 @@ plugin_queue_write (struct plugin_data *plugin)
}
poller_set (&plugin->ctx->poller, plugin->write_fd, POLLOUT,
- (poller_dispatcher_func) on_plugin_writable, plugin);
+ (poller_dispatcher_fn) on_plugin_writable, plugin);
}
static void
@@ -1417,7 +1417,7 @@ plugin_load (struct bot_context *ctx, const char *name, struct error **e)
str_map_set (&ctx->plugins_by_name, name, plugin);
poller_set (&ctx->poller, stdout_pipe[0], POLLIN,
- (poller_dispatcher_func) on_plugin_readable, plugin);
+ (poller_dispatcher_fn) on_plugin_readable, plugin);
return true;
fail_3:
@@ -2031,7 +2031,7 @@ irc_connect (struct bot_context *ctx, struct error **e)
// (struct linger) { .l_onoff = true; .l_linger = 1 /* 1s should do */; }
// 3/ /* O_CLOEXEC */ But only if the QUIT message proves unreliable.
poller_set (&ctx->poller, ctx->irc_fd, POLLIN,
- (poller_dispatcher_func) on_irc_readable, ctx);
+ (poller_dispatcher_fn) on_irc_readable, ctx);
irc_reset_connection_timeouts (ctx);
irc_send (ctx, "NICK %s", nickname);
@@ -2232,7 +2232,7 @@ main (int argc, char *argv[])
setup_recovery_handler (&ctx);
poller_set (&ctx.poller, g_signal_pipe[0], POLLIN,
- (poller_dispatcher_func) on_signal_pipe_readable, &ctx);
+ (poller_dispatcher_fn) on_signal_pipe_readable, &ctx);
plugin_load_all_from_config (&ctx);
if (!parse_config (&ctx, &e)