mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-12 04:27:51 -05:00
misc: replace all explicit zero-initializers with empty initializers
This commit is contained in:
parent
d67f437458
commit
c96a0b3b3c
5 changed files with 15 additions and 15 deletions
4
input.c
4
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue