dde_zircon: fix compile error with GCC 8.3.0

Fixes #3366
This commit is contained in:
Christian Prochaska 2019-05-21 11:56:41 +02:00 committed by Christian Helmuth
parent 753e78d122
commit 4dd9d5eb6c
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ struct Main
{ {
int old_state = old_st & key; int old_state = old_st & key;
int new_state = new_st & key; int new_state = new_st & key;
int key_code; int key_code = Input::KEY_UNKNOWN;
if (old_state == new_state){ if (old_state == new_state){
return; return;

View File

@ -61,7 +61,7 @@ extern "C" {
return 0; return 0;
} }
Genode::size_t strlen(char *str) Genode::size_t strlen(const char *str)
{ {
Genode::size_t len = 0; Genode::size_t len = 0;
while (str[++len] != '\0'); while (str[++len] != '\0');