recovery: ui changes for ev_*() switch to epoll
Convert callback events parameter to unsigned int. Change-Id: Ife0e983f307c07bf4aca807d70574aeb20c460cd
This commit is contained in:
parent
1fc89d4c84
commit
e7265df352
2 changed files with 3 additions and 3 deletions
4
ui.cpp
4
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;
|
||||
|
||||
|
|
2
ui.h
2
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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue