diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-26 14:50:29 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-09-26 14:50:29 -0700 |
commit | 3419c66ac700689351be9fe2bc3f81b80465cd3e (patch) | |
tree | d65fdd20a68fffd71c66926086f3106566aea46b | |
parent | 80cde5d8bb59a50ba1e98b5947f2fe0c8f38ef84 (diff) | |
download | xorg-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |