diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-03-20 07:46:06 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-03-20 07:46:06 -0400 |
commit | ca400e84f538257e97d7c7f1b275b9471439e78b (patch) | |
tree | 21d4ad1a70b89260bea794ea69db931b3477e301 /sway/commands.c | |
parent | 599d6ab65174263cbacb730e674bf20c024c909a (diff) | |
parent | c1f91c4f5e5ad9a4300e254a2a1a3360079cd429 (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.c | 2 |
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); |