View | Details | Raw Unified | Return to bug 163440
Collapse All | Expand All

(-)sysutils/uhidd/files/patch-hidump.c (+11 lines)
Added Link Here
1
--- uhidd/uhidd_hidump.c~
2
+++ uhidd/uhidd_hidump.c
3
@@ -296,7 +296,7 @@ get_unit(int dval, unsigned int sz)
4
 
5
 normal:
6
 	for (i = 1; (unsigned int)i < sz * 2; i++) {
7
-		nibble = (dval >> (i * 4)) && 0x0F;
8
+		nibble = (dval >> (i * 4)) & 0x0F;
9
 		if (!nibble)
10
 			continue;
11
 		if (nibble > 7)
(-)sysutils/uhidd/files/patch-uhidd-lex.l (+19 lines)
Added Link Here
1
--- uhidd/lex.l~
2
+++ uhidd/lex.l
3
@@ -34,7 +34,6 @@
4
 
5
 #include "y.tab.h"
6
 
7
-#define YY_NO_UNPUT
8
 int lineno = 1;
9
 
10
 int	yylex(void);
11
@@ -42,6 +41,8 @@
12
 %}
13
 
14
 %option noyywrap
15
+%option nounput
16
+%option noinput
17
 
18
 %%
19
 
(-)sysutils/uhidd/files/patch-uhidd-uhidd.c (+19 lines)
Added Link Here
1
--- uhidd/uhidd.c~
2
+++ uhidd/uhidd.c
3
@@ -313,7 +313,6 @@
4
 static int
5
 open_device(const char *dev, struct libusb20_device *pdev)
6
 {
7
-	struct LIBUSB20_DEVICE_DESC_DECODED *ddesc;
8
 	struct libusb20_config *config;
9
 	struct libusb20_interface *iface;
10
 	int cndx, e, i;
11
@@ -334,8 +333,6 @@ open_device(const char *dev, struct libu
12
 		return (-1);
13
 	}
14
 
15
-	ddesc = libusb20_dev_get_device_desc(pdev);
16
-
17
 	/*
18
 	 * Iterate each interface.
19
 	 */

Return to bug 163440