summaryrefslogtreecommitdiff
path: root/xkill.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-23 08:17:10 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-23 08:17:10 -0800
commitf33703105f1a1e44c756fbaf150422132d56b1ca (patch)
tree4a531049c266199a48ca9b93555a2260a7ea2c27 /xkill.c
parent718640ec0d212e8f3bf20005e35c1091646c9aea (diff)
Mark msg argument to get_window_id as const, since it's just printed out
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xkill.c')
-rw-r--r--xkill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xkill.c b/xkill.c
index 2e3d7a3..1cd32cb 100644
--- a/xkill.c
+++ b/xkill.c
@@ -52,7 +52,7 @@ static char *ProgramName;
#define SelectButtonFirst (-2)
static int parse_button ( char *s, int *buttonp );
-static XID get_window_id ( Display *dpy, int screen, int button, char *msg );
+static XID get_window_id ( Display *dpy, int screen, int button, const char *msg );
static int catch_window_errors ( Display *dpy, XErrorEvent *ev );
static int kill_all_windows ( Display *dpy, int screenno, Bool top );
static int verify_okay_to_kill ( Display *dpy, int screenno );
@@ -255,7 +255,7 @@ parse_button(char *s, int *buttonp)
}
static XID
-get_window_id(Display *dpy, int screen, int button, char *msg)
+get_window_id(Display *dpy, int screen, int button, const char *msg)
{
Cursor cursor; /* cursor to use when selecting */
Window root; /* the current root */