summaryrefslogtreecommitdiff
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2016-01-20 22:01:18 +0000
committerriastradh <riastradh@NetBSD.org>2016-01-20 22:01:18 +0000
commit0337fa4dbabcee9ad30e1cdfd6ecd050d233933c (patch)
tree8229494e080264d08cd20fd5ed42cc56c1f1629d /sys/netinet/udp_usrreq.c
parent7244ed2fb4d799a70f2b8ee113f72c6f0a6d8d52 (diff)
Give proper prototype to udp_output.
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 8a1f22db57c..f966581d65b 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -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 @@ end:
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