summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-09-11 11:04:54 +0200
committerraveit65 <[email protected]>2017-09-11 11:41:46 +0200
commit465c24d0ad6c09a8463885e4fd70bba146a58d75 (patch)
treeab4d01e7a854c788eff42cecd50f2dd0bbb1e3a3 /src
parentf2228cc60f2516a53a637971b9c8daf6eb2e1a3a (diff)
downloadmate-screensaver-465c24d0ad6c09a8463885e4fd70bba146a58d75.tar.bz2
mate-screensaver-465c24d0ad6c09a8463885e4fd70bba146a58d75.tar.xz
fix loop initial declarations
Diffstat (limited to 'src')
-rw-r--r--src/mate-screensaver-preferences.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index 7f63430..4c4ca36 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -942,7 +942,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;
@@ -967,7 +967,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)
{