diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-23 05:42:20 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-23 08:07:00 +0000 |
| commit | dabdffafa59f43314333be42aa519d7fff1b4498 (patch) | |
| tree | 768ae24bdb5c817396865918e3739a8dbd49ac8d /config.c | |
| parent | config: add user-configured search-binding to the correct binding list (diff) | |
don't use empty struct initializers
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -689,7 +689,7 @@ parse_modifiers(struct config *conf, const char *text, size_t len, { bool ret = false; - *modifiers = (struct config_key_modifiers){}; + *modifiers = (struct config_key_modifiers){0}; char *copy = xstrndup(text, len); for (char *tok_ctx = NULL, *key = strtok_r(copy, "+", &tok_ctx); @@ -730,7 +730,7 @@ parse_key_combos(struct config *conf, const char *combos, key_combo_list_t *key_ combo != NULL; combo = strtok_r(NULL, " ", &tok_ctx)) { - struct config_key_modifiers modifiers = {}; + struct config_key_modifiers modifiers = {0}; const char *key = strrchr(combo, '+'); if (key == NULL) { @@ -1018,7 +1018,7 @@ parse_mouse_combos(struct config *conf, const char *combos, key_combo_list_t *ke combo != NULL; combo = strtok_r(NULL, " ", &tok_ctx)) { - struct config_key_modifiers modifiers = {}; + struct config_key_modifiers modifiers = {0}; char *key = strrchr(combo, '+'); if (key == NULL) { @@ -1494,7 +1494,7 @@ add_default_search_bindings(struct config *conf) ((struct config_key_binding_search){action, mods, sym})); \ } while (0) - const struct config_key_modifiers none = {}; + const struct config_key_modifiers none = {0}; const struct config_key_modifiers alt = {.alt = true}; const struct config_key_modifiers ctrl = {.ctrl = true}; const struct config_key_modifiers ctrl_shift = {.ctrl = true, .shift = true}; @@ -1538,7 +1538,7 @@ add_default_mouse_bindings(struct config *conf) ((struct config_mouse_binding){action, mods, btn, count})); \ } while (0) - const struct config_key_modifiers none = {}; + const struct config_key_modifiers none = {0}; const struct config_key_modifiers ctrl = {.ctrl = true}; add_binding(BIND_ACTION_PRIMARY_PASTE, none, BTN_MIDDLE, 1); |
