1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 22:36: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:
Sébastien Helleu
2017-07-23 16:39:13 +02:00
parent cf51849ac5
commit ef019b6ecd
+1 -1
View File
@@ -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;
}