From 64f76f7e2a7fd4620ea84f5e01efbb28b7c29aa8 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Wed, 29 Aug 2012 18:53:25 -0400 Subject: make this work without using the C99 standard --- svte.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'svte.c') diff --git a/svte.c b/svte.c index da887c3..3e990bf 100644 --- a/svte.c +++ b/svte.c @@ -452,6 +452,7 @@ static void parse_config_file(gchar *config_file) { GError *error = NULL; gsize length; gchar *addid; + int i = 0; addid = (gchar *) g_malloc (3); keyfile = g_key_file_new(); @@ -507,7 +508,7 @@ static void parse_config_file(gchar *config_file) { keyfile, "colour scheme", "cursor", NULL); config->colour_palette = (GdkColor *) g_malloc(sizeof(GdkColor) * DEFAULT_PALETTE_SIZE); - for (int i=0; i < DEFAULT_PALETTE_SIZE; i++){ + for (i=0; i < DEFAULT_PALETTE_SIZE; i++){ g_snprintf(addid, 3, "%d", i); gdk_color_parse(g_key_file_get_string(keyfile, "colour scheme", addid , NULL), &config->colour_palette[i]); -- cgit v1.2.3