summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 23:27:40 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-18 23:27:40 -0700
commit000d4af7f036119cf19717cff105a2bd2efd01e2 (patch)
tree483b902e421eb7628ed3918e4a873621b3cbcf03
parentf33703105f1a1e44c756fbaf150422132d56b1ca (diff)
Mark static string in verify_okay_to_kill as const
Fixes gcc warning: xkill.c: In function ‘verify_okay_to_kill’: xkill.c:371:24: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xkill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xkill.c b/xkill.c
index 1cd32cb..5a303b7 100644
--- a/xkill.c
+++ b/xkill.c
@@ -368,7 +368,7 @@ verify_okay_to_kill(Display *dpy, int screenno)
int count = XGetPointerMapping (dpy, pointer_map, 256);
int i;
int button;
- static char *msg = "the root window";
+ const char *msg = "the root window";
Window root = RootWindow (dpy, screenno);
int okay = 0;