make the netatalk output routine matcy the prtotype used in the
protocol structure. Silences a warning from Gcc.
This commit is contained in:
parent
f8b5ab91de
commit
e9944016be
@ -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 *,
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -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 );
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user