aboutsummaryrefslogtreecommitdiff
path: root/sysutils/uhidd
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2012-01-14 19:58:48 +0000
committerMartin Wilke <miwi@FreeBSD.org>2012-01-14 19:58:48 +0000
commit4603a533d9c34ee27a6721f70692b7d717b87772 (patch)
tree2135bb743128ba36f4bed789dc0c0a07339e92ac /sysutils/uhidd
parent203372b9558fc15fc208461826ca80b69e7ec90c (diff)
downloadports-4603a533d9c34ee27a6721f70692b7d717b87772.tar.gz
ports-4603a533d9c34ee27a6721f70692b7d717b87772.zip
- Unbreak build on clang/gcc46
PR: 163440 Submitted by: Jan Beich <jbeich@tormail.net> Approved by: maintainer
Notes
Notes: svn path=/head/; revision=289235
Diffstat (limited to 'sysutils/uhidd')
-rw-r--r--sysutils/uhidd/files/patch-hidump.c11
-rw-r--r--sysutils/uhidd/files/patch-uhidd-lex.l19
-rw-r--r--sysutils/uhidd/files/patch-uhidd-uhidd.c19
3 files changed, 49 insertions, 0 deletions
diff --git a/sysutils/uhidd/files/patch-hidump.c b/sysutils/uhidd/files/patch-hidump.c
new file mode 100644
index 000000000000..3a536456e452
--- /dev/null
+++ b/sysutils/uhidd/files/patch-hidump.c
@@ -0,0 +1,11 @@
+--- uhidd/uhidd_hidump.c~
++++ uhidd/uhidd_hidump.c
+@@ -296,7 +296,7 @@ get_unit(int dval, unsigned int sz)
+
+ normal:
+ for (i = 1; (unsigned int)i < sz * 2; i++) {
+- nibble = (dval >> (i * 4)) && 0x0F;
++ nibble = (dval >> (i * 4)) & 0x0F;
+ if (!nibble)
+ continue;
+ if (nibble > 7)
diff --git a/sysutils/uhidd/files/patch-uhidd-lex.l b/sysutils/uhidd/files/patch-uhidd-lex.l
new file mode 100644
index 000000000000..1feea71aa942
--- /dev/null
+++ b/sysutils/uhidd/files/patch-uhidd-lex.l
@@ -0,0 +1,19 @@
+--- uhidd/lex.l~
++++ uhidd/lex.l
+@@ -34,7 +34,6 @@
+
+ #include "y.tab.h"
+
+-#define YY_NO_UNPUT
+ int lineno = 1;
+
+ int yylex(void);
+@@ -42,6 +41,8 @@
+ %}
+
+ %option noyywrap
++%option nounput
++%option noinput
+
+ %%
+
diff --git a/sysutils/uhidd/files/patch-uhidd-uhidd.c b/sysutils/uhidd/files/patch-uhidd-uhidd.c
new file mode 100644
index 000000000000..e62091b8ba9f
--- /dev/null
+++ b/sysutils/uhidd/files/patch-uhidd-uhidd.c
@@ -0,0 +1,19 @@
+--- uhidd/uhidd.c~
++++ uhidd/uhidd.c
+@@ -313,7 +313,6 @@
+ static int
+ open_device(const char *dev, struct libusb20_device *pdev)
+ {
+- struct LIBUSB20_DEVICE_DESC_DECODED *ddesc;
+ struct libusb20_config *config;
+ struct libusb20_interface *iface;
+ int cndx, e, i;
+@@ -334,8 +333,6 @@ open_device(const char *dev, struct libu
+ return (-1);
+ }
+
+- ddesc = libusb20_dev_get_device_desc(pdev);
+-
+ /*
+ * Iterate each interface.
+ */