summaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-10 21:32:15 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-10 21:32:15 -0800
commit933b5d1f1fe9273d1a984707687b36ec61c4c5af (patch)
tree55380b7ce47074746febfd95e16ebb93381c2b7e /src/parse.c
parent696be14bcb4daef5280b425e297223c6ae530cb5 (diff)
downloadxorg-lib-libXpm-933b5d1f1fe9273d1a984707687b36ec61c4c5af.tar.gz
Fix gcc -Wwrite-strings warnings that don't require public API changes
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c
index 7dc2aa7..ff23a47 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -70,7 +70,7 @@ LFUNC(ParsePixels, int, (xpmData *data, unsigned int width,
unsigned int cpp, XpmColor *colorTable,
xpmHashTable *hashtable, unsigned int **pixels));
-char *xpmColorKeys[] = {
+const char *xpmColorKeys[] = {
"s", /* key #1: symbol */
"m", /* key #2: mono visual */
"g4", /* key #3: 4 grays visual */
@@ -205,7 +205,8 @@ xpmParseColors(
unsigned int lastwaskey; /* key read */
char buf[BUFSIZ+1];
char curbuf[BUFSIZ]; /* current buffer */
- char **sptr, *s;
+ const char **sptr;
+ char *s;
XpmColor *color;
XpmColor *colorTable;
char **defaults;