mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 22:06:38 +02:00
api: add cast of time_t to long in info "uptime"
This fixes a compiler warning on OpenBSD.
This commit is contained in:
@@ -890,7 +890,7 @@ plugin_api_info_uptime_cb (const void *pointer, void *data,
|
||||
{
|
||||
/* return the number of seconds */
|
||||
util_get_uptime (&total_seconds, NULL, NULL, NULL, NULL);
|
||||
snprintf (value, sizeof (value), "%ld", total_seconds);
|
||||
snprintf (value, sizeof (value), "%ld", (long)total_seconds);
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user