summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2011-09-25 17:47:15 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-09-25 17:49:02 -0700
commitdf353cc7fe40fadc6e48586e95a0cbf1d2e33cfa (patch)
treeac6a550cf33d7a38d7ae5d46e9c11bacd665a37a
parent5cac9764a55c96fee64f63748c054be81fcaadf4 (diff)
downloadxorg-lib-libXft-df353cc7fe40fadc6e48586e95a0cbf1d2e33cfa.tar.gz
constify some bits
https://bugs.freedesktop.org/show_bug.cgi?id=2658 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--src/xftglyphs.c2
-rw-r--r--src/xftinit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/xftglyphs.c b/src/xftglyphs.c
index 8e0d247..e0cfdea 100644
--- a/src/xftglyphs.c
+++ b/src/xftglyphs.c
@@ -428,7 +428,7 @@ XftFontLoadGlyphs (Display *dpy,
{
if (font->info.antialias)
{
- static char den[] = { " .:;=+*#" };
+ static const char den[] = { " .:;=+*#" };
for (x = 0; x < pitch; x++)
printf ("%c", den[line[x] >> 5]);
}
diff --git a/src/xftinit.c b/src/xftinit.c
index 43efc00..0205e4b 100644
--- a/src/xftinit.c
+++ b/src/xftinit.c
@@ -58,7 +58,7 @@ static struct {
static int XftAllocCount, XftAllocMem;
static int XftFreeCount, XftFreeMem;
-static int XftMemNotice = 1*1024*1024;
+static const int XftMemNotice = 1*1024*1024;
static int XftAllocNotify, XftFreeNotify;