From b11932d24f01703d07eb0f7a0de6c226ebcde195 Mon Sep 17 00:00:00 2001 From: Will Storey Date: Mon, 27 Aug 2018 21:04:23 -0700 Subject: [PATCH] Make channel event functions static again --- src/irc/core/channel-events.c | 6 +++--- src/irc/core/channel-events.h | 7 ++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c index 0cdb47fd..85d985ea 100644 --- a/src/irc/core/channel-events.c +++ b/src/irc/core/channel-events.c @@ -177,7 +177,7 @@ static void set_topic_info(CHANNEL_REC *const chanrec, char const *const setby, } } -void event_topic_get(IRC_SERVER_REC *server, const char *data) +static void event_topic_get(IRC_SERVER_REC *server, const char *data) { char *params, *channel, *topic; @@ -188,7 +188,7 @@ void event_topic_get(IRC_SERVER_REC *server, const char *data) g_free(params); } -void event_topic(IRC_SERVER_REC *server, const char *data, +static void event_topic(IRC_SERVER_REC *server, const char *data, const char *nick, const char *addr) { char *params, *channel, *topic, *mask; @@ -203,7 +203,7 @@ void event_topic(IRC_SERVER_REC *server, const char *data, g_free(params); } -void event_topic_info(IRC_SERVER_REC *server, const char *data) +static void event_topic_info(IRC_SERVER_REC *server, const char *data) { char *params, *channel, *topicby, *topictime; time_t t; diff --git a/src/irc/core/channel-events.h b/src/irc/core/channel-events.h index f0dea8b4..6d01c48e 100644 --- a/src/irc/core/channel-events.h +++ b/src/irc/core/channel-events.h @@ -3,10 +3,7 @@ #include "irc.h" -/* Not private for tests. */ -void event_topic_get(IRC_SERVER_REC *, const char *); -void event_topic(IRC_SERVER_REC *, const char *, - const char *, const char *); -void event_topic_info(IRC_SERVER_REC *, const char *); +void channel_events_init(void); +void channel_events_deinit(void); #endif