1 --- ConsoleKit-0.4.1/src/ck-manager.c.1 2015-03-22 14:47:13.636486907 +0300
2 +++ ConsoleKit-0.4.1/src/ck-manager.c 2015-03-22 14:48:09.547798436 +0300
3 @@ -1308,13 +1308,13 @@
4 parse_output (const gchar *output, GPtrArray **systems)
7 - gint id, default_id = -1;
8 + gint id, i, default_id = -1;
13 lines = g_strsplit (output, "\n", 0);
14 - for (int i = 0; lines[i] != NULL; i++) {
15 + for (i = 0; lines[i] != NULL; i++) {
18 /* Split lines into 2 tokens maximum */
19 @@ -1438,12 +1438,13 @@
21 #if (defined(sun) && defined(__SVR4))
25 if (parameters == NULL)
28 param = g_strsplit ((gchar*)parameters, " ", 0);
29 - for (int i = 0; param[i] != NULL; i++) {
30 + for (i = 0; param[i] != NULL; i++) {
31 if (strncmp (param[i], "id:", 3) == 0) {
32 if (g_ascii_isdigit(param[i][3])) {