summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui.cpp4
-rw-r--r--ui.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ui.cpp b/ui.cpp
index 5043ee528..08c291ddc 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -63,12 +63,12 @@ void RecoveryUI::Init() {
}
-int RecoveryUI::input_callback(int fd, short revents, void* data)
+int RecoveryUI::input_callback(int fd, unsigned int epevents, void* data)
{
struct input_event ev;
int ret;
- ret = ev_get_input(fd, revents, &ev);
+ ret = ev_get_input(fd, epevents, &ev);
if (ret)
return -1;
diff --git a/ui.h b/ui.h
index d85fc659b..22f3e5c53 100644
--- a/ui.h
+++ b/ui.h
@@ -134,7 +134,7 @@ private:
pthread_t input_t;
static void* input_thread(void* cookie);
- static int input_callback(int fd, short revents, void* data);
+ static int input_callback(int fd, unsigned int epevents, void* data);
void process_key(int key_code, int updown);
bool usb_connected();