summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-26 14:50:29 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-26 14:50:29 -0700
commit3419c66ac700689351be9fe2bc3f81b80465cd3e (patch)
treed65fdd20a68fffd71c66926086f3106566aea46b
parent80cde5d8bb59a50ba1e98b5947f2fe0c8f38ef84 (diff)
downloadxorg-font-util-3419c66ac700689351be9fe2bc3f81b80465cd3e.tar.gz
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--ucs2any.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucs2any.c b/ucs2any.c
index cc60544..9259951 100644
--- a/ucs2any.c
+++ b/ucs2any.c
@@ -173,7 +173,7 @@ typedef struct {
} da_t;
static da_t *
-da_new(char *name)
+da_new(const char *name)
{
da_t *da;
@@ -246,7 +246,7 @@ da_add(da_t *da, int key, void *value)
}
static void
-da_add_str(da_t *da, int key, char *value)
+da_add_str(da_t *da, int key, const char *value)
{
da_add(da, key, value?zstrdup(value):NULL);
}