patch-2.3.1 linux/net/core/datagram.c

Next file: linux/net/core/firewall.c
Previous file: linux/mm/slab.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/net/core/datagram.c linux/net/core/datagram.c
@@ -54,7 +54,7 @@
 
 static inline void wait_for_packet(struct sock * sk)
 {
-	struct wait_queue wait = { current, NULL };
+	DECLARE_WAITQUEUE(wait, current);
 
 	add_wait_queue(sk->sleep, &wait);
 	current->state = TASK_INTERRUPTIBLE;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)