Fixed bug I introduced in the previous changes. In the ctlinput functions,

I used the void * arg, instead of the sockaddr argument...
This commit is contained in:
christos 1996-02-18 05:42:59 +00:00
parent c9477a3dbc
commit 6c52b1a5eb
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;