diff options
author | Peter Wemm <peter@FreeBSD.org> | 1999-05-06 22:08:57 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1999-05-06 22:08:57 +0000 |
commit | bb6f0e396b13042c0930ce9fd7d589318769be5f (patch) | |
tree | e215830249453c249f59d0c87f907dc89ef62067 | |
parent | 21a1062c12b5cc9d15fe7429e8a4f5e9e1ba5154 (diff) | |
download | src-bb6f0e396b13042c0930ce9fd7d589318769be5f.tar.gz src-bb6f0e396b13042c0930ce9fd7d589318769be5f.zip |
Fix two warnings; and note a problem where a pointer is stored in an
int variable - this can't work on an Alpha.
Notes
Notes:
svn path=/head/; revision=46594
-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 49439fd076db..c097f7c33294 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; |