aboutsummaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-03-20 07:46:06 -0400
committerDrew DeVault <sir@cmpwn.com>2016-03-20 07:46:06 -0400
commitca400e84f538257e97d7c7f1b275b9471439e78b (patch)
tree21d4ad1a70b89260bea794ea69db931b3477e301 /sway/commands.c
parent599d6ab65174263cbacb730e674bf20c024c909a (diff)
parentc1f91c4f5e5ad9a4300e254a2a1a3360079cd429 (diff)
Merge pull request #525 from mikkeloscar/fix-clang-warning
Use correct type for keycode
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 4da411c4..26fa771e 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -317,7 +317,7 @@ static struct cmd_results *cmd_bindcode(int argc, char **argv) {
continue;
}
// parse keycode
- int keycode = (int)strtol(split->items[i], NULL, 10);
+ xkb_keycode_t keycode = (int)strtol(split->items[i], NULL, 10);
if (!xkb_keycode_is_legal_ext(keycode)) {
error = cmd_results_new(CMD_INVALID, "bindcode", "Invalid keycode '%s'", (char *)split->items[i]);
free_sway_binding(binding);