diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-23 08:17:10 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-23 08:17:10 -0800 |
commit | f33703105f1a1e44c756fbaf150422132d56b1ca (patch) | |
tree | 4a531049c266199a48ca9b93555a2260a7ea2c27 | |
parent | 718640ec0d212e8f3bf20005e35c1091646c9aea (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>
-rw-r--r-- | xkill.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |