Remove more bogus tests for 64-bit i386 and SuperH.

These are always false.
This commit is contained in:
nia 2020-06-05 11:16:15 +00:00
parent 5b6317c60e
commit d06dd93f7d
2 changed files with 7 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: getnetent.c,v 1.21 2012/03/20 17:44:18 matt Exp $ */
/* $NetBSD: getnetent.c,v 1.22 2020/06/05 11:16:15 nia Exp $ */
/*
* Copyright (c) 1983, 1993
@ -44,7 +44,7 @@
static char sccsid[] = "@(#)getnetent.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "Id: getnetent.c,v 8.4 1997/06/01 20:34:37 vixie Exp ";
#else
__RCSID("$NetBSD: getnetent.c,v 1.21 2012/03/20 17:44:18 matt Exp $");
__RCSID("$NetBSD: getnetent.c,v 1.22 2020/06/05 11:16:15 nia Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -121,9 +121,7 @@ getnetent(void)
if (netf == NULL && (netf = fopen(_PATH_NETWORKS, "re")) == NULL)
return (NULL);
#if (defined(__sparc__) && defined(_LP64)) || \
defined(__alpha__) || \
(defined(__i386__) && defined(_LP64)) || \
(defined(__sh__) && defined(_LP64))
defined(__alpha__)
net.__n_pad0 = 0;
#endif
again:

View File

@ -1,4 +1,4 @@
/* $NetBSD: getnetnamadr.c,v 1.44 2015/10/26 19:41:19 christos Exp $ */
/* $NetBSD: getnetnamadr.c,v 1.45 2020/06/05 11:16:15 nia Exp $ */
/* Copyright (c) 1993 Carlos Leandro and Rui Salgueiro
* Dep. Matematica Universidade de Coimbra, Portugal, Europe
@ -43,7 +43,7 @@ static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93";
static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03";
static char rcsid[] = "Id: getnetnamadr.c,v 8.8 1997/06/01 20:34:37 vixie Exp ";
#else
__RCSID("$NetBSD: getnetnamadr.c,v 1.44 2015/10/26 19:41:19 christos Exp $");
__RCSID("$NetBSD: getnetnamadr.c,v 1.45 2020/06/05 11:16:15 nia Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -267,9 +267,7 @@ getnetanswer(res_state res, querybuf *answer, int anslen, int net_i)
}
net_entry.n_aliases++;
#if (defined(__sparc__) && defined(_LP64)) || \
defined(__alpha__) || \
(defined(__i386__) && defined(_LP64)) || \
(defined(__sh__) && defined(_LP64))
defined(__alpha__)
net_entry.__n_pad0 = 0;
#endif
return &net_entry;
@ -627,9 +625,7 @@ _ypnetent(char *line)
*p++ = '\0';
net_entry.n_net = inet_network(cp);
#if (defined(__sparc__) && defined(_LP64)) || \
defined(__alpha__) || \
(defined(__i386__) && defined(_LP64)) || \
(defined(__sh__) && defined(_LP64))
defined(__alpha__)
net_entry.__n_pad0 = 0;
#endif
net_entry.n_addrtype = AF_INET;