automake-1.9: add old, but unleashed-patched, libtool.m4
[unleashed-userland.git] / components / ConsoleKit / patches / 99-gcc-compile.patch
blob111a8f670080d0ec34e9265c83144ad018be82b2
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)
6 gchar **lines;
7 - gint id, default_id = -1;
8 + gint id, i, default_id = -1;
10 if (output == NULL)
11 return default_id;
13 lines = g_strsplit (output, "\n", 0);
14 - for (int i = 0; lines[i] != NULL; i++) {
15 + for (i = 0; lines[i] != NULL; i++) {
16 gchar **tokens;
18 /* Split lines into 2 tokens maximum */
19 @@ -1438,12 +1438,13 @@
21 #if (defined(sun) && defined(__SVR4))
22 gchar **param;
23 + gint i;
25 if (parameters == NULL)
26 return;
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])) {
33 gint id;