Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netatalk Give proper prototype to ddp_output.
details: https://anonhg.NetBSD.org/src/rev/605074290e6a
branches: trunk
changeset: 343053:605074290e6a
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jan 20 21:59:19 2016 +0000
description:
Give proper prototype to ddp_output.
diffstat:
sys/netatalk/at_extern.h | 5 +++--
sys/netatalk/ddp_output.c | 12 +++---------
2 files changed, 6 insertions(+), 11 deletions(-)
diffs (61 lines):
diff -r 70a63c59fcb6 -r 605074290e6a sys/netatalk/at_extern.h
--- a/sys/netatalk/at_extern.h Wed Jan 20 21:43:59 2016 +0000
+++ b/sys/netatalk/at_extern.h Wed Jan 20 21:59:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: at_extern.h,v 1.18 2014/07/01 05:49:18 rtr Exp $ */
+/* $NetBSD: at_extern.h,v 1.19 2016/01/20 21:59:19 riastradh Exp $ */
/*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
@@ -37,6 +37,7 @@
struct at_ifaddr;
struct route;
struct socket;
+struct ddpcb;
extern struct mowner atalk_rx_mowner;
extern struct mowner atalk_tx_mowner;
@@ -59,7 +60,7 @@
void ddp_init(void);
struct ifaddr *
at_ifawithnet(const struct sockaddr_at *, struct ifnet *);
-int ddp_output(struct mbuf *, ...);
+int ddp_output(struct mbuf *, struct ddpcb *);
struct ddpcb *
ddp_search(struct sockaddr_at *, struct sockaddr_at *,
struct at_ifaddr *);
diff -r 70a63c59fcb6 -r 605074290e6a sys/netatalk/ddp_output.c
--- a/sys/netatalk/ddp_output.c Wed Jan 20 21:43:59 2016 +0000
+++ b/sys/netatalk/ddp_output.c Wed Jan 20 21:59:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ddp_output.c,v 1.17 2013/09/12 19:47:58 martin Exp $ */
+/* $NetBSD: ddp_output.c,v 1.18 2016/01/20 21:59:19 riastradh Exp $ */
/*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ddp_output.c,v 1.17 2013/09/12 19:47:58 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ddp_output.c,v 1.18 2016/01/20 21:59:19 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -52,15 +52,9 @@
int ddp_cksum = 1;
int
-ddp_output(struct mbuf *m,...)
+ddp_output(struct mbuf *m, struct ddpcb *ddp)
{
- struct ddpcb *ddp;
struct ddpehdr *deh;
- va_list ap;
-
- va_start(ap, m);
- ddp = va_arg(ap, struct ddpcb *);
- va_end(ap);
M_PREPEND(m, sizeof(struct ddpehdr), M_DONTWAIT);
if (!m)
Home |
Main Index |
Thread Index |
Old Index