Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Give proper prototype to udp_output.
details: https://anonhg.NetBSD.org/src/rev/65a3f476756e
branches: trunk
changeset: 343054:65a3f476756e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jan 20 22:01:18 2016 +0000
description:
Give proper prototype to udp_output.
diffstat:
sys/netinet/udp_usrreq.c | 11 +++--------
sys/netinet/udp_var.h | 4 ++--
2 files changed, 5 insertions(+), 10 deletions(-)
diffs (57 lines):
diff -r 605074290e6a -r 65a3f476756e sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c Wed Jan 20 21:59:19 2016 +0000
+++ b/sys/netinet/udp_usrreq.c Wed Jan 20 22:01:18 2016 +0000
@@ -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
diff -r 605074290e6a -r 65a3f476756e sys/netinet/udp_var.h
--- a/sys/netinet/udp_var.h Wed Jan 20 21:59:19 2016 +0000
+++ b/sys/netinet/udp_var.h Wed Jan 20 22:01:18 2016 +0000
@@ -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,
Home |
Main Index |
Thread Index |
Old Index