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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user