diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-05 08:32:43 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-05 08:32:43 +0200 |
commit | b2f0cc30ff37fb63698ff7f6ad0c0f1398632729 (patch) | |
tree | 65fbcef064bf66a61773cfa0ffbe7341289515f9 | |
parent | eb080261f8bf216d8c913ee61106e6356ccc8ca4 (diff) | |
download | weechat-b2f0cc30ff37fb63698ff7f6ad0c0f1398632729.zip |
core: fix type of value returned by function gui_bar_window_content_get
-rw-r--r-- | src/gui/gui-bar-window.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/gui-bar-window.c b/src/gui/gui-bar-window.c index 842de339c..ad09d563d 100644 --- a/src/gui/gui-bar-window.c +++ b/src/gui/gui-bar-window.c @@ -647,7 +647,7 @@ gui_bar_window_content_build (struct t_gui_bar_window *bar_window, * Gets item or subitem content (first rebuilds content if refresh is needed). */ -char * +const char * gui_bar_window_content_get (struct t_gui_bar_window *bar_window, struct t_gui_window *window, int index_item, int index_subitem) @@ -678,7 +678,8 @@ gui_bar_window_content_get_with_filling (struct t_gui_bar_window *bar_window, struct t_gui_window *window) { enum t_gui_bar_filling filling; - char *ptr_content, *content, *content2, str_reinit_color[32]; + const char *ptr_content; + char *content, *content2, str_reinit_color[32]; char str_reinit_color_space[32], str_reinit_color_space_start_line[32]; char str_start_item[32]; char *item_value, *item_value2, ****split_items, **linear_items; |