Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/net Remove more bogus tests for 64-bit i386 and Sup...



details:   https://anonhg.NetBSD.org/src/rev/09ca728aeab6
branches:  trunk
changeset: 934052:09ca728aeab6
user:      nia <nia%NetBSD.org@localhost>
date:      Fri Jun 05 11:16:15 2020 +0000

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

These are always false.

diffstat:

 lib/libc/net/getnetent.c    |   8 +++-----
 lib/libc/net/getnetnamadr.c |  12 ++++--------
 2 files changed, 7 insertions(+), 13 deletions(-)

diffs (69 lines):

diff -r a3d1b40c835a -r 09ca728aeab6 lib/libc/net/getnetent.c
--- a/lib/libc/net/getnetent.c  Fri Jun 05 09:18:35 2020 +0000
+++ b/lib/libc/net/getnetent.c  Fri Jun 05 11:16:15 2020 +0000
@@ -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 @@
        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:
diff -r a3d1b40c835a -r 09ca728aeab6 lib/libc/net/getnetnamadr.c
--- a/lib/libc/net/getnetnamadr.c       Fri Jun 05 09:18:35 2020 +0000
+++ b/lib/libc/net/getnetnamadr.c       Fri Jun 05 11:16:15 2020 +0000
@@ -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_[] = "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 @@
                }
                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 @@
                *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;



Home | Main Index | Thread Index | Old Index