diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-04 08:39:55 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-04 08:39:55 +0200 |
commit | 4ecd8a505f6f47df5c87b673b87eceb1e58c67a7 (patch) | |
tree | f2cbfd34a348a6d7af42a6c83a1dc5054197176a /src/plugins/alias/alias.c | |
parent | bd850398e87d1208921217d0831014994d25d643 (diff) | |
download | weechat-4ecd8a505f6f47df5c87b673b87eceb1e58c67a7.zip |
api: fix type of value returned by functions utf8_prev_char, utf8_next_char and utf8_add_offset
Diffstat (limited to 'src/plugins/alias/alias.c')
-rw-r--r-- | src/plugins/alias/alias.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c index c0df3a3d7..b325e7120 100644 --- a/src/plugins/alias/alias.c +++ b/src/plugins/alias/alias.c @@ -688,13 +688,13 @@ alias_command_cb (void *data, struct t_gui_buffer *buffer, int argc, { ptr_completion = argv[2]; ptr_alias_name = (weechat_string_is_command_char (argv[3])) ? - weechat_utf8_next_char (argv[3]) : argv[3]; + (char *)weechat_utf8_next_char (argv[3]) : argv[3]; ptr_command = argv_eol[4]; } else { ptr_alias_name = (weechat_string_is_command_char (argv[1])) ? - weechat_utf8_next_char (argv[1]) : argv[1]; + (char *)weechat_utf8_next_char (argv[1]) : argv[1]; ptr_command = argv_eol[2]; } @@ -735,7 +735,7 @@ alias_command_cb (void *data, struct t_gui_buffer *buffer, int argc, { /* get pointer to alias name */ ptr_alias_name = (weechat_string_is_command_char (argv[1])) ? - weechat_utf8_next_char (argv[1]) : argv[1]; + (char *)weechat_utf8_next_char (argv[1]) : argv[1]; /* display list of aliases */ alias_found = 0; @@ -790,7 +790,7 @@ unalias_command_cb (void *data, struct t_gui_buffer *buffer, int argc, for (i = 1; i < argc; i++) { alias_name = (weechat_string_is_command_char (argv[i])) ? - weechat_utf8_next_char (argv[i]) : argv[i]; + (char *)weechat_utf8_next_char (argv[i]) : argv[i]; ptr_alias = alias_search (alias_name); if (!ptr_alias) { |