1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 19:53:13 +02:00

core: use an integer for seconds in command /window bare <delay>

This commit is contained in:
Sébastien Helleu
2014-04-02 13:29:58 +02:00
parent dfe3ee6b18
commit a0d0711bb0
20 changed files with 88 additions and 89 deletions
+2 -2
View File
@@ -2375,7 +2375,7 @@ gui_window_bare_display_timer_cb (void *data, int remaining_calls)
void
gui_window_bare_display_toggle (const char *delay)
{
float seconds;
long seconds;
char *error;
gui_window_bare_display ^= 1;
@@ -2389,7 +2389,7 @@ gui_window_bare_display_toggle (const char *delay)
if (delay)
{
error = NULL;
seconds = strtof (delay, &error);
seconds = strtol (delay, &error, 10);
if (error && !error[0] && (seconds >= 0))
{
if (gui_window_bare_display_timer)