From b564e6e40be486fcf7f72cc8546ebf9295e2d093 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 30 May 2012 09:22:02 -0400 Subject: [PATCH] slight cleanup of color-related code --- termite.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/termite.c b/termite.c index 8efd4e9..17f0b0e 100644 --- a/termite.c +++ b/termite.c @@ -232,13 +232,11 @@ int main(int argc, char **argv) { #endif // set colors - GdkColor foreground, background; + GdkColor foreground, background, palette[16]; gdk_color_parse(foreground_color, &foreground); gdk_color_parse(background_color, &background); - GdkColor palette[16]; - - for (size_t i = 0; i < 16; i++) { + for (unsigned i = 0; i < 16; i++) { gdk_color_parse(colors[i], &palette[i]); }