summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-29 23:05:40 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-29 23:05:40 +0000
commit6a3ff81d11dcc114d419e1e276801d7badc24f3b (patch)
tree908631016f27a50abbeb44fa1b748d303a15d338
parent8c57cbb16082f9d462092f8b331947b4268c83bb (diff)
toolchain/musl: add parenthesis to the __ARE_4_EQUAL macro
Fixes warnings exposed by netifd while using IN6_ARE_ADDR_EQUAL turned into errors. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35404 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--toolchain/musl/patches-0.9.8/003-in_h_are_4_equal_parenthesis.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/musl/patches-0.9.8/003-in_h_are_4_equal_parenthesis.patch b/toolchain/musl/patches-0.9.8/003-in_h_are_4_equal_parenthesis.patch
new file mode 100644
index 0000000000..41aaf5d3da
--- /dev/null
+++ b/toolchain/musl/patches-0.9.8/003-in_h_are_4_equal_parenthesis.patch
@@ -0,0 +1,12 @@
+diff -urN musl-0.9.8/include/netinet/in.h musl-0.9.8.new/include/netinet/in.h
+--- musl-0.9.8/include/netinet/in.h 2013-01-25 14:14:07.000000000 +0100
++++ musl-0.9.8.new/include/netinet/in.h 2013-01-29 21:43:46.843051396 +0100
+@@ -141,7 +141,7 @@
+ (IN6_IS_ADDR_MULTICAST(a) && ((((uint8_t *) (a))[1] & 0xf) == 0xe))
+
+ #define __ARE_4_EQUAL(a,b) \
+- (!( 0[a]-0[b] | 1[a]-1[b] | 2[a]-2[b] | 3[a]-3[b] ))
++ (!( (0[a]-0[b]) | (1[a]-1[b]) | (2[a]-2[b]) | (3[a]-3[b]) ))
+ #define IN6_ARE_ADDR_EQUAL(a,b) \
+ __ARE_4_EQUAL((const uint32_t *)(a), (const uint32_t *)(b))
+