]> git.zerfleddert.de Git - usb-driver/blobdiff - usb-driver.c
Always set return value for parallel ports
[usb-driver] / usb-driver.c
index 44a280b1e94704f48a30f7e1eb34e64e9a5fdf8e..3bfeee5558f4c507b79f8e7a89679694c4b7e900 100644 (file)
@@ -115,6 +115,7 @@ static int do_wdioctl(int fd, unsigned int request, unsigned char *wdioctl) {
 #ifndef NO_WINDRVR
                                ret = (*ioctl_func) (fd, request, wdioctl);
 #else
+                               cr->hCard = 0;
 
                                pport = config_get((unsigned long)cr->Card.Item[0].I.IO.dwAddr / 0x10);
                                if (!pport)
@@ -662,7 +663,7 @@ int semop (int __semid, struct sembuf *__sops, size_t __nsops) {
  * open() anymore...
  * echo '_Z14isModuleLoadedPci' | c++filt
  */
-int _Z14isModuleLoadedPci(char *module_name, int i) {
+long int _Z14isModuleLoadedPci(char *module_name, int i) {
        DPRINTF("_Z14isModuleLoadedPci: Checking for module %s (%d)\n", module_name, i);
 
        return 1;
Impressum, Datenschutz