summaryrefslogtreecommitdiff
path: root/src/fontfile
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-02 09:16:05 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-11 20:15:06 -0800
commit3715cd752bac912a56aa1cbb9dd874624a709aab (patch)
tree2558e6031d81d08dbf35b6b8ecf6060a0487548c /src/fontfile
parent8d130ac0fcf19e0e0dd0a404d9317fd8860baad4 (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/fontfile')
-rw-r--r--src/fontfile/fontdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fontfile/fontdir.c b/src/fontfile/fontdir.c
index e524696..97b2ba3 100644
--- a/src/fontfile/fontdir.c
+++ b/src/fontfile/fontdir.c
@@ -102,12 +102,12 @@ FontFileFreeTable (FontTablePtr table)
}
FontDirectoryPtr
-FontFileMakeDir(char *dirName, int size)
+FontFileMakeDir(const char *dirName, int size)
{
FontDirectoryPtr dir;
int dirlen;
int needslash = 0;
- char *attrib;
+ const char *attrib;
int attriblen;
#if !defined(WIN32)