diff options
author | mutantturkey <mutantturke@gmail.com> | 2012-08-29 18:53:25 -0400 |
---|---|---|
committer | mutantturkey <mutantturke@gmail.com> | 2012-08-29 18:53:25 -0400 |
commit | 64f76f7e2a7fd4620ea84f5e01efbb28b7c29aa8 (patch) | |
tree | 986ed2c876daceb911cf291d88ca0f8883cab105 | |
parent | 1ce8c50a9a85f69b01b1744d720aaf40ca17e0f1 (diff) |
make this work without using the C99 standard
-rw-r--r-- | svte.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]); |