diff options
author | okan | 2014-01-20 19:06:04 +0000 |
---|---|---|
committer | okan | 2014-01-20 19:06:04 +0000 |
commit | bc4622e632abd877c52d5baa8359e834325a4f23 (patch) | |
tree | b37ca7ac8f01fb72ba177f4c753d2b5f1f10ce48 /calmwm.h | |
parent | 749175e23624a43a35824edada4545a6115dd4d1 (diff) | |
download | cwm-bc4622e632abd877c52d5baa8359e834325a4f23.tar.gz |
- 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.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 *); |