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/plugins/xfer | |
parent | 91f792416bd40c8e47d7f035e15f49732be368ce (diff) | |
download | weechat-7ee88fb46c512c125191d6447ff1348dfc3254f3.zip |
core: fix some styles
Diffstat (limited to 'src/plugins/xfer')
-rw-r--r-- | src/plugins/xfer/xfer-buffer.c | 14 | ||||
-rw-r--r-- | src/plugins/xfer/xfer-command.c | 4 | ||||
-rw-r--r-- | src/plugins/xfer/xfer-file.c | 2 | ||||
-rw-r--r-- | src/plugins/xfer/xfer.c | 6 |
4 files changed, 13 insertions, 13 deletions
diff --git a/src/plugins/xfer/xfer-buffer.c b/src/plugins/xfer/xfer-buffer.c index 079c4f7d9..608ccd25f 100644 --- a/src/plugins/xfer/xfer-buffer.c +++ b/src/plugins/xfer/xfer-buffer.c @@ -57,9 +57,9 @@ xfer_buffer_refresh (const char *hotlist) xfer_selected = xfer_search_by_number (xfer_buffer_selected_line); weechat_printf_y (xfer_buffer, 0, "%s%s%s%s%s%s%s%s", - weechat_color("green"), + weechat_color ("green"), _("Actions (letter+enter):"), - weechat_color("lightgreen"), + weechat_color ("lightgreen"), /* accept */ (xfer_selected && XFER_IS_RECV(xfer_selected->type) && (xfer_selected->status == XFER_STATUS_WAITING)) ? @@ -116,7 +116,7 @@ xfer_buffer_refresh (const char *hotlist) /* display first line with remote nick, filename and plugin name/id */ weechat_printf_y (xfer_buffer, (line * 2) + 2, "%s%s%-24s %s%s%s%s (%s.%s)%s%s", - weechat_color(str_color), + weechat_color (str_color), (line == xfer_buffer_selected_line) ? "*** " : " ", ptr_xfer->remote_nick, @@ -154,12 +154,12 @@ xfer_buffer_refresh (const char *hotlist) } weechat_printf_y (xfer_buffer, (line * 2) + 3, "%s%s%s %s%s%s%s%s", - weechat_color(str_color), + weechat_color (str_color), (line == xfer_buffer_selected_line) ? "*** " : " ", (XFER_IS_SEND(ptr_xfer->type)) ? "<<--" : "-->>", - weechat_color(weechat_config_string (xfer_config_color_status[ptr_xfer->status])), + weechat_color (weechat_config_string (xfer_config_color_status[ptr_xfer->status])), status, weechat_color ("reset"), weechat_color (str_color), @@ -228,10 +228,10 @@ xfer_buffer_refresh (const char *hotlist) /* display second line for file with status, progress bar and estimated time */ weechat_printf_y (xfer_buffer, (line * 2) + 3, "%s%s%s %s%s%s%s%3llu%% %s / %s (%s%s/s)", - weechat_color(str_color), + weechat_color (str_color), (line == xfer_buffer_selected_line) ? "*** " : " ", (XFER_IS_SEND(ptr_xfer->type)) ? "<<--" : "-->>", - weechat_color(weechat_config_string (xfer_config_color_status[ptr_xfer->status])), + weechat_color (weechat_config_string (xfer_config_color_status[ptr_xfer->status])), status, weechat_color (str_color), (progress_bar) ? progress_bar : "", diff --git a/src/plugins/xfer/xfer-command.c b/src/plugins/xfer/xfer-command.c index cebb5de0a..fd2d1d86c 100644 --- a/src/plugins/xfer/xfer-command.c +++ b/src/plugins/xfer/xfer-command.c @@ -147,8 +147,8 @@ xfer_command_xfer_list (int full) ptr_xfer->remote_nick, ptr_xfer->local_nick, date, - weechat_color( - weechat_config_string( + weechat_color ( + weechat_config_string ( xfer_config_color_status[ptr_xfer->status])), _(xfer_status_string[ptr_xfer->status])); } diff --git a/src/plugins/xfer/xfer-file.c b/src/plugins/xfer/xfer-file.c index 8d390f0ab..82853dd0a 100644 --- a/src/plugins/xfer/xfer-file.c +++ b/src/plugins/xfer/xfer-file.c @@ -103,7 +103,7 @@ xfer_file_find_filename (struct t_xfer *xfer) } strcpy (xfer->local_filename, path); - dir_separator = weechat_info_get("dir_separator", ""); + dir_separator = weechat_info_get ("dir_separator", ""); if (dir_separator && (xfer->local_filename[strlen (xfer->local_filename) - 1] != dir_separator[0])) strcat (xfer->local_filename, dir_separator); diff --git a/src/plugins/xfer/xfer.c b/src/plugins/xfer/xfer.c index b6c8edc2e..091bb06f1 100644 --- a/src/plugins/xfer/xfer.c +++ b/src/plugins/xfer/xfer.c @@ -688,11 +688,11 @@ xfer_new (const char *plugin_name, const char *plugin_id, if (XFER_IS_RECV(type)) { new_xfer->local_address_str = strdup (""); - xfer_set_remote_address(new_xfer, address, address_length, str_address); + xfer_set_remote_address (new_xfer, address, address_length, str_address); } else { - xfer_set_local_address(new_xfer, address, address_length, str_address); + xfer_set_local_address (new_xfer, address, address_length, str_address); new_xfer->remote_address_str = strdup (""); } @@ -1184,7 +1184,7 @@ xfer_add_cb (const void *pointer, void *data, } else { - memset(&bind_addr, 0, sizeof(bind_addr)); + memset (&bind_addr, 0, sizeof (bind_addr)); /* determine bind_addr family from either own_ip or default */ if (weechat_config_string (xfer_config_network_own_ip) |