summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 22:05:41 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 22:05:41 -0700
commit5815b461672845cf6de179f04c778354139f7834 (patch)
tree1c4c34740030d1018d81ce8a9ec17968c25e2ed3
parentd9200f965f056d3da49476dd9b8333ff47265f30 (diff)
Add const attribute to fieldP fix a gcc -Wwrite-strings warning
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xfontsel.c2
1 files changed, 1 insertions, 1 deletions
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') {