]> git.zerfleddert.de Git - hmcfgusb/commitdiff
fix poll
authorMichael Gernoth <michael@gernoth.net>
Wed, 5 Mar 2014 01:35:28 +0000 (02:35 +0100)
committerMichael Gernoth <michael@gernoth.net>
Wed, 5 Mar 2014 01:35:28 +0000 (02:35 +0100)
culfw.c

diff --git a/culfw.c b/culfw.c
index 1904bb72c0041629a1f8e2106a787b2a5d7e58b8..72c5c6a2f7ef02810d78f3c81952f905ec6189cb 100644 (file)
--- a/culfw.c
+++ b/culfw.c
@@ -167,7 +167,8 @@ int culfw_poll(struct culfw_dev *dev, int timeout)
 
        dev->cb(buf, r, dev->cb_data);
 
 
        dev->cb(buf, r, dev->cb_data);
 
-       return pfds[0].fd;
+       errno = 0;
+       return -1;
 }
 
 void culfw_close(struct culfw_dev *dev)
 }
 
 void culfw_close(struct culfw_dev *dev)
Impressum, Datenschutz