diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-02-23 08:17:10 -0800 |
---|---|---|
committer | Sung-Jin Park <sj76.park@samsung.com> | 2013-09-03 00:03:03 -0400 |
commit | d59104ab9ff7a3dee8c30116ec4b922365cacb0d (patch) | |
tree | 4a531049c266199a48ca9b93555a2260a7ea2c27 | |
parent | a77655391250f7eea4cf2766f8a6f7303507c84a (diff) | |
download | xkill-d59104ab9ff7a3dee8c30116ec4b922365cacb0d.tar.gz xkill-d59104ab9ff7a3dee8c30116ec4b922365cacb0d.tar.bz2 xkill-d59104ab9ff7a3dee8c30116ec4b922365cacb0d.zip |
Mark msg argument to get_window_id as const, since it's just printed out
Change-Id: I7f4d7c5bde62023b464a13a67cd3e04c2dbff284
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 */ |