1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

core, api: remove unneeded cast to time_t

The field `tv_sec` of struct timeval is already time_t, the cast is not needed.
This commit is contained in:
Sébastien Helleu
2026-06-20 21:49:18 +02:00
parent c4dfb16df0
commit f4564a1cb0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -7401,7 +7401,7 @@ command_upgrade_display (struct t_gui_buffer *buffer,
str_first_start[0] = '\0';
str_last_start[0] = '\0';
weechat_last_start_time = (time_t)weechat_current_start_timeval.tv_sec;
weechat_last_start_time = weechat_current_start_timeval.tv_sec;
if (translated_string)
{
+1 -1
View File
@@ -1042,7 +1042,7 @@ plugin_api_info_uptime_current_cb (const void *pointer, void *data,
(void) info_name;
return plugin_api_info_build_uptime (
(time_t)weechat_current_start_timeval.tv_sec,
weechat_current_start_timeval.tv_sec,
arguments);
}