aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-13 10:03:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-13 10:03:11 +0000
commitc96a0b3b3ce22f0db45e61160d414258917e4bcd (patch)
tree6e37370440c7828c672b496b94b67f6dc59b58f1 /input.c
parentmbstate: fix compile warning on systems where mbstate_t isn't an integral (diff)
misc: replace all explicit zero-initializers with empty initializers
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/input.c b/input.c
index 43b7d259..a6415b31 100644
--- a/input.c
+++ b/input.c
@@ -344,7 +344,7 @@ stop_repeater(struct wayland *wayl, uint32_t key)
if (key != -1 && key != wayl->kbd.repeat.key)
return true;
- if (timerfd_settime(wayl->kbd.repeat.fd, 0, &(struct itimerspec){{0}}, NULL) < 0) {
+ if (timerfd_settime(wayl->kbd.repeat.fd, 0, &(struct itimerspec){}, NULL) < 0) {
LOG_ERRNO("failed to disarm keyboard repeat timer");
return false;
}
@@ -615,7 +615,7 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
* Compose, and maybe emit "normal" character
*/
- uint8_t buf[64] = {0};
+ uint8_t buf[64] = {};
int count = 0;
if (compose_status == XKB_COMPOSE_COMPOSED) {