make colors array const

This commit is contained in:
Daniel Micay 2012-06-25 03:04:31 -04:00
parent eb5bf78048
commit b71dd341b1
1 changed files with 2 additions and 2 deletions

View File

@ -403,8 +403,8 @@ static void load_config(GtkWindow *window, VteTerminal *vte,
static const long palette_size = 24; static const long palette_size = 24;
GdkColor color, palette[palette_size]; GdkColor color, palette[palette_size];
static const char *colors[8] = {"black", "red", "green", "yellow", static const char * const colors[8] = {"black", "red", "green", "yellow",
"blue", "magenta", "cyan", "white"}; "blue", "magenta", "cyan", "white"};
bool success = true; bool success = true;
for (unsigned i = 0; success && i < 8; i++) { for (unsigned i = 0; success && i < 8; i++) {