From bc4622e632abd877c52d5baa8359e834325a4f23 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 20 Jan 2014 19:06:04 +0000 Subject: - remove redundant range check for buttons in conf_bind_mouse. - make conf_bind_kbd return error on non-matches to match what conf_bind_mouse does. - rename some variables while here for clarity. - constify bind and cmd. from Tiago Cunha. --- calmwm.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index 69d27ba..bc34b58 100644 --- a/calmwm.h +++ b/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.241 2014/01/20 18:58:03 okan Exp $ + * $OpenBSD: calmwm.h,v 1.242 2014/01/20 19:06:04 okan Exp $ */ #ifndef _CALMWM_H_ @@ -515,8 +515,10 @@ int parse_config(const char *, struct conf *); void conf_atoms(void); void conf_autogroup(struct conf *, int, char *); -void conf_bind_kbd(struct conf *, char *, char *); -int conf_bind_mouse(struct conf *, char *, char *); +int conf_bind_kbd(struct conf *, const char *, + const char *); +int conf_bind_mouse(struct conf *, const char *, + const char *); void conf_clear(struct conf *); void conf_client(struct client_ctx *); void conf_cmd_add(struct conf *, char *, char *); -- cgit v1.2.3-2-gb3c3