1 |
slords |
1.1 |
--- nut-2.2.0/drivers/megatec_usb.c.open 2007-08-16 09:32:03.000000000 +0200 |
2 |
|
|
+++ nut-2.2.0/drivers/megatec_usb.c 2007-08-16 09:32:24.000000000 +0200 |
3 |
|
|
@@ -209,7 +209,7 @@ |
4 |
|
|
/* link the matchers */ |
5 |
|
|
regex_matcher->next = &subdriver_matcher; |
6 |
|
|
|
7 |
|
|
- ret = usb->open(&udev, &hiddevice, regex_matcher, NULL, MODE_NOHID); |
8 |
|
|
+ ret = (usb->open)(&udev, &hiddevice, regex_matcher, NULL, MODE_NOHID); |
9 |
|
|
if (ret < 0) |
10 |
|
|
usb_open_error(port); |
11 |
|
|
|
12 |
|
|
--- nut-2.2.0/drivers/libhid.c.open 2007-08-16 09:28:05.000000000 +0200 |
13 |
|
|
+++ nut-2.2.0/drivers/libhid.c 2007-08-16 09:28:23.000000000 +0200 |
14 |
|
|
@@ -589,7 +589,7 @@ |
15 |
|
|
} |
16 |
|
|
|
17 |
|
|
/* get and parse descriptors (dev, cfg and report) */ |
18 |
|
|
- ReportSize = comm_driver->open(udevp, hd, matcher, ReportDesc, mode); |
19 |
|
|
+ ReportSize = (comm_driver->open)(udevp, hd, matcher, ReportDesc, mode); |
20 |
|
|
|
21 |
|
|
if (ReportSize == -1) |
22 |
|
|
return NULL; |