From 2ec9f8d5e8f659fd5c20dd12edadc17c0c2fce0a Mon Sep 17 00:00:00 2001 From: raveit65 Date: Mon, 11 Sep 2017 11:04:54 +0200 Subject: fix loop initial declarations --- src/mate-screensaver-preferences.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c index 0a9f9a6..1ebfd0c 100644 --- a/src/mate-screensaver-preferences.c +++ b/src/mate-screensaver-preferences.c @@ -935,7 +935,7 @@ time_to_string_text (long time) char *secs, *mins, *hours, *string; int sec, min, hour; - int inc_len, len_minutes; + int n, inc_len, len_minutes; sec = time % 60; time = time - sec; @@ -960,7 +960,7 @@ time_to_string_text (long time) len_minutes = 0; - for (int n = 2; n < 60; n++) + for (n = 2; n < 60; n++) { if (n < 10) { -- cgit v1.2.1