]> git.zerfleddert.de Git - hmcfgusb/blobdiff - culfw.c
fix variable assignment, copyright year
[hmcfgusb] / culfw.c
diff --git a/culfw.c b/culfw.c
index 1904bb72c0041629a1f8e2106a787b2a5d7e58b8..0dfb807e290ce968a79c8be60a52aa71319526e0 100644 (file)
--- a/culfw.c
+++ b/culfw.c
@@ -1,6 +1,6 @@
 /* culfw driver
  *
- * Copyright (c) 2013 Michael Gernoth <michael@gernoth.net>
+ * Copyright (c) 2014 Michael Gernoth <michael@gernoth.net>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -167,7 +167,8 @@ int culfw_poll(struct culfw_dev *dev, int timeout)
 
        dev->cb(buf, r, dev->cb_data);
 
-       return pfds[0].fd;
+       errno = 0;
+       return -1;
 }
 
 void culfw_close(struct culfw_dev *dev)
Impressum, Datenschutz