diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 23:27:40 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-18 23:27:40 -0700 |
commit | 000d4af7f036119cf19717cff105a2bd2efd01e2 (patch) | |
tree | 483b902e421eb7628ed3918e4a873621b3cbcf03 | |
parent | f33703105f1a1e44c756fbaf150422132d56b1ca (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |