tree 8d63cfeb7f9247c336af4859b946f5910fc4d5b6
parent 95608261dae863bc43292e6fbd946a3abd3aa49f
author [EMAIL PROTECTED] <[EMAIL PROTECTED]> Wed, 07 Sep 2005 23:16:59 +0100
committer Linus Torvalds <[EMAIL PROTECTED]> Thu, 08 Sep 2005 07:17:33 -0700

[PATCH] -Wundef fixes (hamachi)

All uses of ADDRLEN are comparisons with 64 (it's an address width).
added define to 32 (again, we only care about comparisons with 64)
if not defined.

Signed-off-by: Al Viro <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 drivers/net/hamachi.c |    4 ++++
 1 files changed, 4 insertions(+)

diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c
--- a/drivers/net/hamachi.c
+++ b/drivers/net/hamachi.c
@@ -204,6 +204,10 @@ KERN_INFO "   Further modifications by K
 
 #define RUN_AT(x) (jiffies + (x))
 
+#ifndef ADDRLEN
+#define ADDRLEN 32
+#endif
+
 /* Condensed bus+endian portability operations. */
 #if ADDRLEN == 64
 #define cpu_to_leXX(addr)      cpu_to_le64(addr)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to