diff options
author | julian <julian@FreeBSD.org> | 1997-03-05 09:17:38 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1997-03-05 09:17:38 +0000 |
commit | 6ba0dbd35ac15d0a0c9237de79d172cf19f7c01f (patch) | |
tree | d1382e0f372781c7e7a0a564500f32cbe56a518e /sys/netatalk | |
parent | e564f03613c005e65e3928a85119be36da3c6d0f (diff) | |
download | FreeBSD-src-6ba0dbd35ac15d0a0c9237de79d172cf19f7c01f.zip FreeBSD-src-6ba0dbd35ac15d0a0c9237de79d172cf19f7c01f.tar.gz |
make the netatalk output routine matcy the prtotype used in the
protocol structure. Silences a warning from Gcc.
Diffstat (limited to 'sys/netatalk')
-rw-r--r-- | sys/netatalk/at_extern.h | 4 | ||||
-rw-r--r-- | sys/netatalk/ddp_output.c | 5 | ||||
-rw-r--r-- | sys/netatalk/ddp_pcb.c | 2 | ||||
-rw-r--r-- | sys/netatalk/ddp_usrreq.c | 2 |
4 files changed, 9 insertions, 4 deletions
diff --git a/sys/netatalk/at_extern.h b/sys/netatalk/at_extern.h index bed1022..7e9478f 100644 --- a/sys/netatalk/at_extern.h +++ b/sys/netatalk/at_extern.h @@ -27,7 +27,9 @@ extern void ddp_init __P((void )); extern struct ifaddr *at_ifawithnet __P((struct sockaddr_at *, struct ifaddrhead *)); #ifdef _NETATALK_DDP_VAR_H_ -extern int ddp_output __P(( struct ddpcb *ddp, struct mbuf *m)); +extern int ddp_output __P((struct mbuf *m, struct socket *so)); + +/*extern int ddp_output __P(( struct ddpcb *ddp, struct mbuf *m));*/ #endif #if defined (_NETATALK_DDP_VAR_H_) && defined(_NETATALK_AT_VAR_H_) extern struct ddpcb *ddp_search __P((struct sockaddr_at *, diff --git a/sys/netatalk/ddp_output.c b/sys/netatalk/ddp_output.c index c5df845..34f010b 100644 --- a/sys/netatalk/ddp_output.c +++ b/sys/netatalk/ddp_output.c @@ -26,6 +26,7 @@ #include <sys/systm.h> #include <sys/mbuf.h> #include <sys/socket.h> +#include <sys/socketvar.h> #include <sys/errno.h> #include <sys/syslog.h> @@ -46,9 +47,11 @@ int ddp_cksum = 1; int -ddp_output( struct ddpcb *ddp, struct mbuf *m) +/*ddp_output( struct ddpcb *ddp, struct mbuf *m)*/ +ddp_output( struct mbuf *m, struct socket *so) { struct ddpehdr *deh; + struct ddpcb *ddp = sotoddpcb( so ); M_PREPEND( m, sizeof( struct ddpehdr ), M_WAIT ); diff --git a/sys/netatalk/ddp_pcb.c b/sys/netatalk/ddp_pcb.c index 7a89a94..3f03a30 100644 --- a/sys/netatalk/ddp_pcb.c +++ b/sys/netatalk/ddp_pcb.c @@ -133,7 +133,7 @@ ddp_usrreq( struct socket *so, int req, struct mbuf *m, } } - error = ddp_output( ddp, m ); + error = ddp_output( m, so ); m = NULL; if ( addr ) { at_pcbdisconnect( ddp ); diff --git a/sys/netatalk/ddp_usrreq.c b/sys/netatalk/ddp_usrreq.c index 7a89a94..3f03a30 100644 --- a/sys/netatalk/ddp_usrreq.c +++ b/sys/netatalk/ddp_usrreq.c @@ -133,7 +133,7 @@ ddp_usrreq( struct socket *so, int req, struct mbuf *m, } } - error = ddp_output( ddp, m ); + error = ddp_output( m, so ); m = NULL; if ( addr ) { at_pcbdisconnect( ddp ); |