From 5815b461672845cf6de179f04c778354139f7834 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 28 Sep 2011 22:05:41 -0700 Subject: Add const attribute to fieldP fix a gcc -Wwrite-strings warning Signed-off-by: Alan Coopersmith --- xfontsel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfontsel.c') diff --git a/xfontsel.c b/xfontsel.c index 47ece7b..cf334e4 100644 --- a/xfontsel.c +++ b/xfontsel.c @@ -546,7 +546,7 @@ void ParseFontNames(XtPointer closure) } for (f = 0, p = *fontNames++; f < FIELD_COUNT; f++) { - char *fieldP; + const char *fieldP; if (*p) ++p; if (*p == DELIM || *p == '\0') { -- cgit v1.2.3