DORMANTno replies

[PATCH] (3/6) tr - mcast_addr need not be on stack

From: Stephen Hemminger <hidden>
Date: 2003-08-21 00:09:11

Multicast address value is put on stack and can just be static const.

Patch against 2.6.0-test3 bk latest.

diff -Nru a/net/802/tr.c b/net/802/tr.c
--- a/net/802/tr.c	Wed Aug 20 15:51:56 2003
+++ b/net/802/tr.c	Wed Aug 20 15:51:56 2003
@@ -235,7 +235,8 @@
 	unsigned int hash;
 	struct rif_cache_s *entry;
 	unsigned char *olddata;
-	unsigned char mcast_func_addr[] = {0xC0,0x00,0x00,0x04,0x00,0x00};
+	static const unsigned char mcast_func_addr[] 
+		= {0xC0,0x00,0x00,0x04,0x00,0x00};
 	
 	spin_lock_bh(&rif_lock);
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help