summaryrefslogtreecommitdiffstats
path: root/uevent
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-10-01 14:53:18 -0700
committerMathias Agopian <mathias@google.com>2012-10-01 14:53:18 -0700
commit3aabb260ceef10377c31c9e45fb239247f5cfeba (patch)
treeefebbe6de0f4df2f5f7c5faa80c01306841846f7 /uevent
parent76e97d3950f2654adbb0a415218b6d048200c395 (diff)
downloadhardware_libhardware_legacy-3aabb260ceef10377c31c9e45fb239247f5cfeba.zip
hardware_libhardware_legacy-3aabb260ceef10377c31c9e45fb239247f5cfeba.tar.gz
hardware_libhardware_legacy-3aabb260ceef10377c31c9e45fb239247f5cfeba.tar.bz2
fix a typo in uevent_next_eventi
Bug: 7114973 Change-Id: I15a4c714b59aeb1d02db00517d70b5f0e5ab22c2
Diffstat (limited to 'uevent')
-rw-r--r--uevent/uevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uevent/uevent.c b/uevent/uevent.c
index ef8ce84..b9e3557 100644
--- a/uevent/uevent.c
+++ b/uevent/uevent.c
@@ -81,7 +81,7 @@ int uevent_next_event(char* buffer, int buffer_length)
fds.revents = 0;
nr = poll(&fds, 1, -1);
- if(nr > 0 && fds.revents == POLLIN) {
+ if(nr > 0 && (fds.revents & POLLIN)) {
int count = recv(fd, buffer, buffer_length, 0);
if (count > 0) {
struct uevent_handler *h;