From 6c52b1a5eb763154d2be8fd823926c87fb3cda64 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 18 Feb 1996 05:42:59 +0000 Subject: [PATCH] Fixed bug I introduced in the previous changes. In the ctlinput functions, I used the void * arg, instead of the sockaddr argument... --- sys/netns/ns_input.c | 4 ++-- sys/netns/spp_usrreq.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/netns/ns_input.c b/sys/netns/ns_input.c index 9e896d84c54e..9c14fc258ca4 100644 --- a/sys/netns/ns_input.c +++ b/sys/netns/ns_input.c @@ -1,4 +1,4 @@ -/* $NetBSD: ns_input.c,v 1.9 1996/02/13 22:13:56 christos Exp $ */ +/* $NetBSD: ns_input.c,v 1.10 1996/02/18 05:42:59 christos Exp $ */ /* * Copyright (c) 1984, 1985, 1986, 1987, 1993 @@ -275,7 +275,7 @@ idp_ctlinput(cmd, sa, arg) case PRC_IFDOWN: case PRC_HOSTDEAD: case PRC_HOSTUNREACH: - sns = arg; + sns = (struct sockaddr_ns *) sa; if (sns->sns_family != AF_NS) return NULL; ns = &sns->sns_addr; diff --git a/sys/netns/spp_usrreq.c b/sys/netns/spp_usrreq.c index 7c3421d60782..a56d5fa71cdf 100644 --- a/sys/netns/spp_usrreq.c +++ b/sys/netns/spp_usrreq.c @@ -1,4 +1,4 @@ -/* $NetBSD: spp_usrreq.c,v 1.9 1996/02/13 22:14:13 christos Exp $ */ +/* $NetBSD: spp_usrreq.c,v 1.10 1996/02/18 05:43:03 christos Exp $ */ /* * Copyright (c) 1984, 1985, 1986, 1987, 1993 @@ -617,7 +617,7 @@ spp_ctlinput(cmd, sa, arg) case PRC_IFDOWN: case PRC_HOSTDEAD: case PRC_HOSTUNREACH: - sns = arg; + sns = (struct sockaddr_ns *) sa; if (sns->sns_family != AF_NS) return NULL; na = &sns->sns_addr;