s/_func/_fn/

This commit is contained in:
2014-09-19 01:08:18 +02:00
parent 21e75ebd55
commit d4c60dc105
3 changed files with 16 additions and 16 deletions

View File

@@ -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)