From 28b30d72a3821a1c1567c33b1e01d169f59c4660 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 6 May 1999 22:08:57 +0000 Subject: Fix two warnings; and note a problem where a pointer is stored in an int variable - this can't work on an Alpha. --- sys/netinet/ip_dummynet.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/netinet') 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; -- cgit v1.1