summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-11-29 09:43:20 +0100
committerSébastien Helleu <flashcode@flashtux.org>2014-11-29 09:43:20 +0100
commitfa5d9bb56498c90aa1046f1ea59f2419b896e53b (patch)
treef9aee6816ce43f5b9e934fbe0b0b65a96f02cad8
parentaspell: rename callback for info "aspell_dict" (diff)
downloadweechat-fa5d9bb56498c90aa1046f1ea59f2419b896e53b.tar.xz
weechat-fa5d9bb56498c90aa1046f1ea59f2419b896e53b.zip
fifo: rename callback for info "fifo_filename"
-rw-r--r--src/plugins/fifo/fifo-info.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/plugins/fifo/fifo-info.c b/src/plugins/fifo/fifo-info.c
index b7516f89d..a3108a962 100644
--- a/src/plugins/fifo/fifo-info.c
+++ b/src/plugins/fifo/fifo-info.c
@@ -26,23 +26,19 @@
/*
- * Returns info about FIFO pipe.
+ * Returns FIFO info "fifo_filename".
*/
const char *
-fifo_info_get_info_cb (void *data, const char *info_name,
- const char *arguments)
+fifo_info_info_fifo_filename_cb (void *data, const char *info_name,
+ const char *arguments)
{
/* make C compiler happy */
(void) data;
+ (void) info_name;
(void) arguments;
- if (weechat_strcasecmp (info_name, "fifo_filename") == 0)
- {
- return fifo_filename;
- }
-
- return NULL;
+ return fifo_filename;
}
/*
@@ -53,5 +49,5 @@ void
fifo_info_init ()
{
weechat_hook_info ("fifo_filename", N_("name of FIFO pipe"), NULL,
- &fifo_info_get_info_cb, NULL);
+ &fifo_info_info_fifo_filename_cb, NULL);
}