diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-02 09:16:05 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 20:15:06 -0800 |
commit | 3715cd752bac912a56aa1cbb9dd874624a709aab (patch) | |
tree | 2558e6031d81d08dbf35b6b8ecf6060a0487548c /src/FreeType/ftenc.c | |
parent | 8d130ac0fcf19e0e0dd0a404d9317fd8860baad4 (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/FreeType/ftenc.c')
-rw-r--r-- | src/FreeType/ftenc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FreeType/ftenc.c b/src/FreeType/ftenc.c index 3c1d43b..9e31d75 100644 --- a/src/FreeType/ftenc.c +++ b/src/FreeType/ftenc.c @@ -43,9 +43,9 @@ THE SOFTWARE. static int find_cmap(int, int, int, FT_Face, FT_CharMap *); static int -FTEncFontSpecific(char *encoding) +FTEncFontSpecific(const char *encoding) { - char *p = encoding; + const char *p = encoding; if(strcasecmp(encoding, "microsoft-symbol") == 0) return 1; @@ -69,7 +69,7 @@ FTPickMapping(char *xlfd, int length, char *filename, FT_Face face, int ftrc; int symbol = 0; const char *enc, *reg; - char *encoding_name = 0; + const char *encoding_name = 0; char buf[20]; if(xlfd) |