From df353cc7fe40fadc6e48586e95a0cbf1d2e33cfa Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Sun, 25 Sep 2011 17:47:15 -0700 Subject: constify some bits https://bugs.freedesktop.org/show_bug.cgi?id=2658 Signed-off-by: Jeremy Huddleston --- src/xftglyphs.c | 2 +- src/xftinit.c | 2 +- 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; -- cgit v1.2.1