Give proper prototype to ddp_output.

This commit is contained in:
riastradh 2016-01-20 21:59:19 +00:00
parent 65a8f527af
commit d33ecd31cb
2 changed files with 6 additions and 11 deletions

View File

@ -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 ifaddr;
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 @@ u_int16_t
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 *);

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: ddp_output.c,v 1.17 2013/09/12 19:47:58 martin Exp $
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)