diff options
| author | riastradh <riastradh@NetBSD.org> | 2016-01-20 22:01:18 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2016-01-20 22:01:18 +0000 |
| commit | 0337fa4dbabcee9ad30e1cdfd6ecd050d233933c (patch) | |
| tree | 8229494e080264d08cd20fd5ed42cc56c1f1629d /sys | |
| parent | 7244ed2fb4d799a70f2b8ee113f72c6f0a6d8d52 (diff) | |
Give proper prototype to udp_output.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 11 | ||||
| -rw-r--r-- | sys/netinet/udp_var.h | 4 |
2 files changed, 5 insertions, 10 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 diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h index 66eeecdccf8..c446fddc4b7 100644 --- a/sys/netinet/udp_var.h +++ b/sys/netinet/udp_var.h @@ -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 @@ int udp_ctloutput(int, struct socket *, struct sockopt *); 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, |
