mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
keyboard: fix poll missing an argument
This commit is contained in:
+3
-2
@@ -145,10 +145,11 @@ static int read(int *error, int minor, void* buff, size_t count, size_t offset){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int poll(pollfd* fd){
|
static int poll(int minor, pollfd* fd){
|
||||||
|
|
||||||
if((fd->events & POLLIN) && devbuff.read != devbuff.write)
|
if((fd->events & POLLIN) && devbuff.read != devbuff.write)
|
||||||
fd->revents |= POLLIN;
|
fd->revents |= POLLIN;
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user