summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-10 22:47:27 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-10 22:47:27 -0800
commita15d4d640732edf31f462c606d358e6ff7ddb60f (patch)
tree464d38b7075aead050ae200f710e8241b5d3661f
parent6ade8927be5a225e5a74e15f9212d11d1e6a576e (diff)
Fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--header.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/header.c b/header.c
index 4564a00..4378d32 100644
--- a/header.c
+++ b/header.c
@@ -52,7 +52,7 @@ in this Software without prior written authorization from The Open Group.
unsigned long pointSize;
unsigned long yResolution;
-static char *warning[] =
+static const char *warning[] =
{
"COMMENT ",
"COMMENT WARNING: This bdf file was generated from a font server using",
@@ -65,7 +65,7 @@ static char *warning[] =
};
static char *
-FindStringProperty(char *propName,
+FindStringProperty(const char *propName,
int *propLength,
FSPropInfo *propInfo,
FSPropOffset *propOffsets,
@@ -102,7 +102,7 @@ FindStringProperty(char *propName,
}
static int
-FindNumberProperty(char *propName,
+FindNumberProperty(const char *propName,
unsigned long *propValue,
FSPropInfo *propInfo,
FSPropOffset *propOffsets,
@@ -141,7 +141,7 @@ EmitHeader(FILE *outFile,
int len;
int type;
char *cp;
- char **cpp;
+ const char **cpp;
unsigned long xResolution;
fprintf(outFile, "STARTFONT 2.1\n");