make the netatalk output routine matcy the prtotype used in the

protocol structure. Silences a warning from Gcc.
This commit is contained in:
julian 1997-03-05 09:17:38 +00:00
parent f8b5ab91de
commit e9944016be
4 changed files with 9 additions and 4 deletions

View File

@ -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 *,

View File

@ -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 );

View File

@ -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 );

View File

@ -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 );