From f33703105f1a1e44c756fbaf150422132d56b1ca Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 23 Feb 2013 08:17:10 -0800 Subject: Mark msg argument to get_window_id as const, since it's just printed out Signed-off-by: Alan Coopersmith --- xkill.c | 4 ++-- 1 file 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 */ -- cgit v1.2.3