Fix two warnings; and note a problem where a pointer is stored in an

int variable - this can't work on an Alpha.
This commit is contained in:
Peter Wemm 1999-05-06 22:08:57 +00:00
parent 21a1062c12
commit bb6f0e396b
1 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@
*
* This software is provided ``AS IS'' without any warranties of any kind.
*
* $Id: ip_dummynet.c,v 1.13 1999/05/04 07:30:07 luigi Exp $
* $Id: ip_dummynet.c,v 1.14 1999/05/04 16:20:30 luigi Exp $
*/
/*
@ -353,10 +353,10 @@ dummynet_io(int pipe_nr, int dir,
/*
* and again, dst might be a pointer into *ro...
*/
if (dst == &ro->ro_dst) /* dst points into ro */
dst = &(pkt->ro.ro_dst) ;
if (dst == (struct sockaddr_in *)&ro->ro_dst) /* dst points into ro */
dst = (struct sockaddr_in *)&(pkt->ro.ro_dst) ;
pkt->dn_dst = dst;
pkt->dn_dst = dst; /* XXX this can't be right! */
}
if (pipe->r.head == NULL)
pipe->r.head = pkt;