diff options
Diffstat (limited to 'xlib/xcolors.c')
-rw-r--r-- | xlib/xcolors.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlib/xcolors.c b/xlib/xcolors.c index ad33b7b..be9e479 100644 --- a/xlib/xcolors.c +++ b/xlib/xcolors.c @@ -10,7 +10,7 @@ * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ -#include <tkInt.h> +#include "tkInt.h" /* * This value will be set to the number of colors in the color table @@ -32,11 +32,11 @@ static int FindColor(const char *name, XColor *colorPtr); */ typedef struct { - char *name; + const char *name; unsigned char red, green, blue; } XColorEntry; -static XColorEntry xColors[] = { +static const XColorEntry xColors[] = { { "alice blue", 240, 248, 255 }, { "AliceBlue", 240, 248, 255 }, { "antique white", 250, 235, 215 }, @@ -823,7 +823,7 @@ FindColor( */ if (numXColors == 0) { - XColorEntry *ePtr; + const XColorEntry *ePtr; for (ePtr = xColors; ePtr->name != NULL; ePtr++) { numXColors++; } |