diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-15 22:35:12 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-15 22:35:12 +0100 |
commit | 8724fc18afa1d2702eeed9aa6e7d825d25cbda98 (patch) | |
tree | 735f8d09799db47ff387129bb8613e940bb4fbf7 /src/plugins/irc/irc-bar-item.c | |
parent | e1d639d7ebbea6cf1c28e6d3cba284f5a3562dac (diff) | |
download | weechat-8724fc18afa1d2702eeed9aa6e7d825d25cbda98.zip |
Use of const for some functions returning "char *"
Diffstat (limited to 'src/plugins/irc/irc-bar-item.c')
-rw-r--r-- | src/plugins/irc/irc-bar-item.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c index e2510c2cf..07ad3b140 100644 --- a/src/plugins/irc/irc-bar-item.c +++ b/src/plugins/irc/irc-bar-item.c @@ -42,7 +42,8 @@ irc_bar_item_buffer_title (void *data, struct t_gui_bar_item *item, int max_width, int max_height) { struct t_gui_buffer *buffer; - char *title, *title_color; + const char *title; + char *title_color; /* make C compiler happy */ (void) data; @@ -78,7 +79,8 @@ irc_bar_item_buffer_name (void *data, struct t_gui_bar_item *item, struct t_gui_window *window, int max_width, int max_height) { - char buf[512], buf_name[256], modes[128], away[128], *name; + char buf[512], buf_name[256], modes[128], away[128]; + const char *name; int number, part_from_channel; struct t_gui_buffer *buffer; struct t_irc_server *server; |