diff options
author | frsfnrrg <frsfnrrg@users.noreply.github.com> | 2018-06-01 06:50:53 -0400 |
---|---|---|
committer | frsfnrrg <frsfnrrg@users.noreply.github.com> | 2018-06-01 18:52:36 -0400 |
commit | eb00edc6e278a3c5d603a24ef8ef73c3c5888f12 (patch) | |
tree | 7073b63ce86bb951cab7940656f4a6c6e9f1b656 | |
parent | f2fe93d1718d1eacccb27fffa58d4cfecd20edfc (diff) | |
download | sway-eb00edc6e278a3c5d603a24ef8ef73c3c5888f12.tar.xz |
Style fixes for bind.c
-rw-r--r-- | sway/commands/bind.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index 139361dd..d0e3e22f 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -69,8 +69,9 @@ bool binding_key_compare(struct sway_binding *binding_a, return true; } -static struct cmd_results * cmd_bindsym_or_bindcode(int argc, char **argv, bool bindcode) { - const char* bindtype = bindcode ? "bindcode" : "bindsym"; +static struct cmd_results *cmd_bindsym_or_bindcode(int argc, char **argv, + bool bindcode) { + const char *bindtype = bindcode ? "bindcode" : "bindsym"; struct cmd_results *error = NULL; if ((error = checkarg(argc, bindtype, EXPECTED_MORE_THAN, 1))) { @@ -149,7 +150,7 @@ static struct cmd_results * cmd_bindsym_or_bindcode(int argc, char **argv, bool return ret; } } - uint32_t *key = calloc(1, sizeof(xkb_keysym_t)); + uint32_t *key = calloc(1, sizeof(uint32_t)); if (!key) { free_sway_binding(binding); free_flat_list(split); @@ -158,9 +159,9 @@ static struct cmd_results * cmd_bindsym_or_bindcode(int argc, char **argv, bool } if (bindcode) { - *key = (uint32_t) keycode; + *key = (uint32_t)keycode; } else { - *key = (uint32_t) keysym; + *key = (uint32_t)keysym; } list_add(binding->keys, key); |