summaryrefslogtreecommitdiff
path: root/data.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-04 21:00:11 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-04 21:02:06 -0700
commitb2d0f04a50f1444f9d62d11636a28c89951f0f40 (patch)
treeea962d23f843a8d20401ddf0ec978c5914549111 /data.h
parent0f4f6462597841e5f8470571d56cfda61144ee8f (diff)
Add const attributes to fix gcc -Wwrite-strings warnings
Does not fix all of them since some lists contain constant strings and some contain dynamically allocated strings that need to be freed later. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'data.h')
-rw-r--r--data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/data.h b/data.h
index bb5b170..75e9325 100644
--- a/data.h
+++ b/data.h
@@ -26,7 +26,7 @@
/* Order is significant. For example, some B&H fonts are hinted by
URW++, and both strings appear in the notice. */
-static char *notice_foundries[][2] =
+static const char *notice_foundries[][2] =
{{"Bigelow", "b&h"},
{"Adobe", "adobe"},
{"Bitstream", "bitstream"},
@@ -49,7 +49,7 @@ static char *notice_foundries[][2] =
/* It should not contain useless entries (such as UNKN) nor duplicate
entries for padding both with spaces and NULs. */
-static char *vendor_foundries[][2] =
+static const char *vendor_foundries[][2] =
{{"ADBE", "adobe"},
{"AGFA", "agfa"},
{"ALTS", "altsys"},