diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-29 09:43:20 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-11-29 09:43:20 +0100 |
commit | fa5d9bb56498c90aa1046f1ea59f2419b896e53b (patch) | |
tree | f9aee6816ce43f5b9e934fbe0b0b65a96f02cad8 /src | |
parent | c357408c2c3b133df0e2540a55d58134cf3ff955 (diff) | |
download | weechat-fa5d9bb56498c90aa1046f1ea59f2419b896e53b.zip |
fifo: rename callback for info "fifo_filename"
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fifo/fifo-info.c | 16 |
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); } |