summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-13 12:50:21 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-13 12:54:53 -0800
commitdcd3ef4f939077b032319508ea6f6107286dd39a (patch)
treecef7bf5fd781b414aad110d908616e6fa58c91c1
parentd8f572a262c37f79d3fabc855543404b774c96b1 (diff)
Constify some char * to fix gcc warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xstdcmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xstdcmap.c b/xstdcmap.c
index 7cc6341..ad35c83 100644
--- a/xstdcmap.c
+++ b/xstdcmap.c
@@ -59,8 +59,8 @@ typedef struct
Bool create;
Bool delete;
Atom property;
- char *name;
- char *nickname;
+ const char *name;
+ const char *nickname;
} colormap_property;
static colormap_property propertyTable[]=
@@ -259,7 +259,7 @@ getBestVisual(Atom property, /* specifies the standard colormap */
}
-static char *
+static const char *
visualStringFromClass(int class)
{
switch (class) {