Wed Jan 20 22:01:18 2016 UTC ()
Give proper prototype to udp_output.


(riastradh)
diff -r1.222 -r1.223 src/sys/netinet/udp_usrreq.c
diff -r1.40 -r1.41 src/sys/netinet/udp_var.h

cvs diff -r1.222 -r1.223 src/sys/netinet/udp_usrreq.c (expand / switch to context diff)
--- src/sys/netinet/udp_usrreq.c 2015/08/24 22:21:26 1.222
+++ src/sys/netinet/udp_usrreq.c 2016/01/20 22:01:18 1.223
@@ -1,4 +1,4 @@
-/*	$NetBSD: udp_usrreq.c,v 1.222 2015/08/24 22:21:26 pooka Exp $	*/
+/*	$NetBSD: udp_usrreq.c,v 1.223 2016/01/20 22:01:18 riastradh Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.222 2015/08/24 22:21:26 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udp_usrreq.c,v 1.223 2016/01/20 22:01:18 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -775,19 +775,14 @@
 
 
 int
-udp_output(struct mbuf *m, ...)
+udp_output(struct mbuf *m, struct inpcb *inp)
 {
-	struct inpcb *inp;
 	struct udpiphdr *ui;
 	struct route *ro;
 	int len = m->m_pkthdr.len;
 	int error = 0;
-	va_list ap;
 
 	MCLAIM(m, &udp_tx_mowner);
-	va_start(ap, m);
-	inp = va_arg(ap, struct inpcb *);
-	va_end(ap);
 
 	/*
 	 * Calculate data length and get a mbuf

cvs diff -r1.40 -r1.41 src/sys/netinet/udp_var.h (expand / switch to context diff)
--- src/sys/netinet/udp_var.h 2014/05/18 14:46:16 1.40
+++ src/sys/netinet/udp_var.h 2016/01/20 22:01:18 1.41
@@ -1,4 +1,4 @@
-/*	$NetBSD: udp_var.h,v 1.40 2014/05/18 14:46:16 rmind Exp $	*/
+/*	$NetBSD: udp_var.h,v 1.41 2016/01/20 22:01:18 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -96,7 +96,7 @@
 void	 udp_init(void);
 void	 udp_init_common(void);
 void	 udp_input(struct mbuf *, ...);
-int	 udp_output(struct mbuf *, ...);
+int	 udp_output(struct mbuf *, struct inpcb *);
 int	 udp_sysctl(int *, u_int, void *, size_t *, void *, size_t);
 
 int	udp_input_checksum(int af, struct mbuf *, const struct udphdr *, int,