aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutantturkey <mutantturke@gmail.com>2012-08-29 18:53:25 -0400
committermutantturkey <mutantturke@gmail.com>2012-08-29 18:53:25 -0400
commit64f76f7e2a7fd4620ea84f5e01efbb28b7c29aa8 (patch)
tree986ed2c876daceb911cf291d88ca0f8883cab105
parent1ce8c50a9a85f69b01b1744d720aaf40ca17e0f1 (diff)
make this work without using the C99 standard
-rw-r--r--svte.c3
1 files changed, 2 insertions, 1 deletions
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]);