[PATCH 1/3] Initialize pollfd array correctly.
Kristian HXXgsberg
krh at redhat.com
Tue Mar 27 10:24:08 PDT 2007
From: Kristian Høgsberg <krh at redhat.com>
Signed-off-by: Kristian Høgsberg <krh at redhat.com>
---
hald/linux/probing/probe-ieee1394-unit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hald/linux/probing/probe-ieee1394-unit.c b/hald/linux/probing/probe-ieee1394-unit.c
index ea64814..dbfb8a3 100644
--- a/hald/linux/probing/probe-ieee1394-unit.c
+++ b/hald/linux/probing/probe-ieee1394-unit.c
@@ -282,7 +282,7 @@ get_unit_info (int fd)
}
fds[0].fd = fd;
- fds[1].events = POLLIN;
+ fds[0].events = POLLIN;
while (TRUE) {
if (poll (fds, 1, AVC_TIMEOUT) < 0) {
--
1.5.0.5
More information about the hal
mailing list