diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-07 09:11:45 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-01-07 09:11:45 +0100 |
commit | 7ee88fb46c512c125191d6447ff1348dfc3254f3 (patch) | |
tree | 708d6960a34134455ceafe5f737d2d99ed344f5f /src/gui/curses | |
parent | 91f792416bd40c8e47d7f035e15f49732be368ce (diff) | |
download | weechat-7ee88fb46c512c125191d6447ff1348dfc3254f3.zip |
core: fix some styles
Diffstat (limited to 'src/gui/curses')
-rw-r--r-- | src/gui/curses/gui-curses-color.c | 2 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-main.c | 10 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-window.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/curses/gui-curses-color.c b/src/gui/curses/gui-curses-color.c index fea9e6426..feb74163e 100644 --- a/src/gui/curses/gui-curses-color.c +++ b/src/gui/curses/gui-curses-color.c @@ -1497,7 +1497,7 @@ gui_color_init_weechat () void gui_color_alloc () { - if (has_colors()) + if (has_colors ()) { start_color (); use_default_colors (); diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c index d6e203c5d..b319c11b0 100644 --- a/src/gui/curses/gui-curses-main.c +++ b/src/gui/curses/gui-curses-main.c @@ -265,13 +265,13 @@ gui_main_handle_quit_signals () switch (weechat_quit_signal) { case SIGHUP: - snprintf (str_signal, sizeof(str_signal), "SIGHUP"); + snprintf (str_signal, sizeof (str_signal), "SIGHUP"); break; case SIGQUIT: - snprintf (str_signal, sizeof(str_signal), "SIGQUIT"); + snprintf (str_signal, sizeof (str_signal), "SIGQUIT"); break; case SIGTERM: - snprintf (str_signal, sizeof(str_signal), "SIGTERM"); + snprintf (str_signal, sizeof (str_signal), "SIGTERM"); break; default: str_signal[0] = '\0'; @@ -280,9 +280,9 @@ gui_main_handle_quit_signals () if (str_signal[0]) { - snprintf (str_weechat_signal, sizeof(str_weechat_signal), + snprintf (str_weechat_signal, sizeof (str_weechat_signal), "signal_%s", str_signal); - string_tolower(str_weechat_signal); + string_tolower (str_weechat_signal); rc = hook_signal_send (str_weechat_signal, WEECHAT_HOOK_SIGNAL_STRING, NULL); if ((rc != WEECHAT_RC_OK_EAT) && !weechat_quit) diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c index 4b54d953a..3b410dfd7 100644 --- a/src/gui/curses/gui-curses-window.c +++ b/src/gui/curses/gui-curses-window.c @@ -2565,7 +2565,7 @@ gui_window_term_display_infos () gui_chat_printf (NULL, ""); gui_chat_printf (NULL, _("Terminal infos:")); gui_chat_printf (NULL, _(" TERM='%s', size: %dx%d"), - getenv("TERM"), gui_term_cols, gui_term_lines); + getenv ("TERM"), gui_term_cols, gui_term_lines); } /* |