diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/player/keyboard.c | 3 | ||||
-rw-r--r-- | apps/recorder/keyboard.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/player/keyboard.c b/apps/player/keyboard.c index 4f8a8b09e5..e657f36697 100644 --- a/apps/player/keyboard.c +++ b/apps/player/keyboard.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include "rbunicode.h" | 32 | #include "rbunicode.h" |
33 | #include "lang.h" | 33 | #include "lang.h" |
34 | #include "keyboard.h" | 34 | #include "keyboard.h" |
35 | #include "splash.h" | ||
35 | 36 | ||
36 | #define KBD_BUF_SIZE 64 | 37 | #define KBD_BUF_SIZE 64 |
37 | #define KEYBOARD_PAGES 3 | 38 | #define KEYBOARD_PAGES 3 |
@@ -112,7 +113,7 @@ int kbd_input(char* text, int buflen) | |||
112 | unsigned char *utf8; | 113 | unsigned char *utf8; |
113 | 114 | ||
114 | int button, lastbutton = 0; | 115 | int button, lastbutton = 0; |
115 | int ret; | 116 | int ret = 0; /* assume success */ |
116 | 117 | ||
117 | editpos = utf8length(text); | 118 | editpos = utf8length(text); |
118 | 119 | ||
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index 9ef6021160..0fa1d32503 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "keyboard.h" | 38 | #include "keyboard.h" |
39 | #include "viewport.h" | 39 | #include "viewport.h" |
40 | #include "file.h" | 40 | #include "file.h" |
41 | #include "splash.h" | ||
41 | 42 | ||
42 | #ifndef O_BINARY | 43 | #ifndef O_BINARY |
43 | #define O_BINARY 0 | 44 | #define O_BINARY 0 |
@@ -297,7 +298,7 @@ int kbd_input(char* text, int buflen) | |||
297 | unsigned short ch; | 298 | unsigned short ch; |
298 | unsigned char *utf8; | 299 | unsigned char *utf8; |
299 | bool cur_blink = true; /* Cursor on/off flag */ | 300 | bool cur_blink = true; /* Cursor on/off flag */ |
300 | int ret; | 301 | int ret = 0; /* assume success */ |
301 | #ifdef KBD_MORSE_INPUT | 302 | #ifdef KBD_MORSE_INPUT |
302 | bool morse_reading = false; | 303 | bool morse_reading = false; |
303 | unsigned char morse_code = 0; | 304 | unsigned char morse_code = 0; |