summary refs log tree commit diff
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan <okan>2014-01-20 19:06:04 +0000
committerokan <okan>2014-01-20 19:06:04 +0000
commit7263fb4c8457631a921c20a93bb339dfe638bb34 (patch)
tree0f1a5620e88d120daf830ba2e1e4368e3c0700b5 /calmwm.h
parent720b5452aa13bf27740a2b923617188fde8814ed (diff)
downloadcwm-7263fb4c8457631a921c20a93bb339dfe638bb34.tar.gz
cwm-7263fb4c8457631a921c20a93bb339dfe638bb34.tar.xz
cwm-7263fb4c8457631a921c20a93bb339dfe638bb34.zip
- 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.
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/calmwm.h b/calmwm.h
index 4c90239..f575a78 100644
--- a/calmwm.h
+++ b/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 *);