Fix lossage caused by the __weak_alias() commit. The namespace protection

does NOT belong here; these implement the file lookups, and are internal
functions only.  As such, use "__foo" rather than "_foo" in the names, to
avoid confusion.
This commit is contained in:
thorpej 1997-07-31 23:40:49 +00:00
parent fdcef230ca
commit 34e2e251f2
2 changed files with 11 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: getnetbyaddr.c,v 1.9 1997/07/21 14:07:55 jtc Exp $ */
/* $NetBSD: getnetbyaddr.c,v 1.10 1997/07/31 23:40:49 thorpej Exp $ */
/*
* Copyright (c) 1983, 1993
@ -40,22 +40,19 @@ static char sccsid_[] = "from getnetbyaddr.c 1.1 (Coimbra) 93/06/02";
static char rcsid[] = "$Id: getnetbyaddr.c,v 8.2 1996/05/09 05:59:13 vixie Exp ";
static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: getnetbyaddr.c,v 1.9 1997/07/21 14:07:55 jtc Exp $");
__RCSID("$NetBSD: getnetbyaddr.c,v 1.10 1997/07/31 23:40:49 thorpej Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <netdb.h>
#ifdef __weak_alias
__weak_alias(getnetbyaddr,_getnetbyaddr);
#endif
extern int _net_stayopen;
struct netent *_getnetbyaddr __P((unsigned long, int type));
/* XXX private header! */
struct netent *__getnetbyaddr __P((unsigned long, int type));
struct netent *
_getnetbyaddr(net, type)
__getnetbyaddr(net, type)
unsigned long net;
int type;
{

View File

@ -1,4 +1,4 @@
/* $NetBSD: getnetbyname.c,v 1.8 1997/07/21 14:07:55 jtc Exp $ */
/* $NetBSD: getnetbyname.c,v 1.9 1997/07/31 23:40:52 thorpej Exp $ */
/*
* Copyright (c) 1983, 1993
@ -40,24 +40,20 @@ static char sccsid_[] = "from getnetbyname.c 1.1 (Coimbra) 93/06/02";
static char rcsid[] = "$Id: getnetbyname.c,v 8.2 1995/06/19 08:35:01 vixie Exp ";
static char sccsid[] = "@(#)getnetbyname.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: getnetbyname.c,v 1.8 1997/07/21 14:07:55 jtc Exp $");
__RCSID("$NetBSD: getnetbyname.c,v 1.9 1997/07/31 23:40:52 thorpej Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <netdb.h>
#include <string.h>
#ifdef __weak_alias
__weak_alias(getnetbyname,_getnetbyname);
#endif
extern int _net_stayopen;
struct netent * _getnetbyname __P((const char *name));
/* XXX private header! */
struct netent * __getnetbyname __P((const char *name));
struct netent *
_getnetbyname(name)
__getnetbyname(name)
const char *name;
{
struct netent *p;