Make cons_rtrequest return void because the only place it is used

is through the ifa_rtrequest method. Unfortunately the net code
does not seem to care if that operation succeeds or fails. Maybe
it should...
This commit is contained in:
christos 1996-03-14 18:47:52 +00:00
parent acdfea75a0
commit 835271da20
2 changed files with 21 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pk_extern.h,v 1.1 1996/02/13 22:05:17 christos Exp $ */
/* $NetBSD: pk_extern.h,v 1.2 1996/03/14 18:47:52 christos Exp $ */
/*
* Copyright (c) 1995 Christos Zoulas. All rights reserved.
@ -63,7 +63,7 @@ void pk_call_accepted __P((struct pklcd *, struct mbuf *));
void pk_parse_facilities __P((octet *, struct sockaddr_x25 *));
/* pk_llcsubr.c */
int cons_rtrequest __P((int, struct rtentry *, struct sockaddr *));
void cons_rtrequest __P((int, struct rtentry *, struct sockaddr *));
struct rtentry *npaidb_enter __P((struct sockaddr_dl *, struct sockaddr *,
struct rtentry *, struct llc_linkcb *));
struct rtentry *npaidb_enrich __P((short, caddr_t, struct sockaddr_dl *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: pk_llcsubr.c,v 1.4 1996/02/13 22:05:26 christos Exp $ */
/* $NetBSD: pk_llcsubr.c,v 1.5 1996/03/14 18:47:53 christos Exp $ */
/*
* Copyright (C) Dirk Husemann, Computer Science Department IV,
@ -125,11 +125,28 @@
#define XIFA(rt) ((struct x25_ifaddr *)((rt)->rt_ifa))
#define SA(s) ((struct sockaddr *)s)
int
static int cons_rtrequest_internal __P((int, struct rtentry *,
struct sockaddr *));
/*
* ifa_rtrequest currently does not check the error from the rtrequest call
* so we use a void version of the cons_rtrequest routine.
*/
void
cons_rtrequest(cmd, rt, dst)
int cmd;
struct rtentry *rt;
struct sockaddr *dst;
{
cons_rtrequest_internal(cmd, rt, dst);
}
static int
cons_rtrequest_internal(cmd, rt, dst)
int cmd;
struct rtentry *rt;
struct sockaddr *dst;
{
register struct pkcb *pkp;
register char one_to_one;