patch-2.2.0-final linux/net/ipv4/ip_masq_mfw.c
Next file: linux/net/ipv4/tcp_input.c
Previous file: linux/net/ipv4/fib_semantics.c
Back to the patch index
Back to the overall index
-  Lines: 17
-  Date:
Mon Jan 25 10:10:58 1999
-  Orig file: 
v2.2.0-pre9/linux/net/ipv4/ip_masq_mfw.c
-  Orig date: 
Thu Jan  7 15:11:41 1999
diff -u --recursive --new-file v2.2.0-pre9/linux/net/ipv4/ip_masq_mfw.c linux/net/ipv4/ip_masq_mfw.c
@@ -79,7 +79,7 @@
 };
 
 
-static struct semaphore mfw_sema;
+static struct semaphore mfw_sema = MUTEX;
 #ifdef __SMP__
 static rwlock_t mfw_lock = RW_LOCK_UNLOCKED;
 #endif
@@ -748,7 +748,6 @@
 
 __initfunc(int ip_mfw_init(void))
 {
-	sema_init(&mfw_sema, 1);
 	return register_ip_masq_mod ((mmod_self=&mfw_mod));
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov