diff options
author | peter <peter@FreeBSD.org> | 1999-05-06 22:08:57 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-05-06 22:08:57 +0000 |
commit | 28b30d72a3821a1c1567c33b1e01d169f59c4660 (patch) | |
tree | 45422e9946185b51735802a468f3412c213845a4 /sys/netinet/ip_dummynet.c | |
parent | 0420df868dd76e5e4506dc9504ef21853ab7bfb8 (diff) | |
download | FreeBSD-src-28b30d72a3821a1c1567c33b1e01d169f59c4660.zip FreeBSD-src-28b30d72a3821a1c1567c33b1e01d169f59c4660.tar.gz |
Fix two warnings; and note a problem where a pointer is stored in an
int variable - this can't work on an Alpha.
Diffstat (limited to 'sys/netinet/ip_dummynet.c')
-rw-r--r-- | sys/netinet/ip_dummynet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_dummynet.c b/sys/netinet/ip_dummynet.c index 49439fd..c097f7c 100644 --- a/sys/netinet/ip_dummynet.c +++ b/sys/netinet/ip_dummynet.c @@ -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; |