keyboard: Fix comparison of signed and unsigned value

rpi-vc4-hack
Andri Yngvason 2020-05-18 20:38:48 +00:00
parent 9b48290d09
commit ff1223e4f9
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ int keyboard_init(struct keyboard* self, const char* layout)
if (keymap_fd < 0)
goto fd_failure;
int written = 0;
size_t written = 0;
while (written < keymap_size) {
ssize_t ret = write(keymap_fd, keymap_string + written, keymap_size - written);
if (ret == -1 && errno == EINTR)