Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet Fix for -Wunitialized warnings broke compiles wi...



details:   https://anonhg.NetBSD.org/src/rev/01b4e748b127
branches:  trunk
changeset: 474290:01b4e748b127
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Fri Jul 02 21:02:05 1999 +0000

description:
Fix for -Wunitialized warnings broke compiles without INET6, refix.

diffstat:

 sys/netinet/tcp_output.c |  4 +++-
 sys/netinet/tcp_subr.c   |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r e12e3402b1c9 -r 01b4e748b127 sys/netinet/tcp_output.c
--- a/sys/netinet/tcp_output.c  Fri Jul 02 20:55:19 1999 +0000
+++ b/sys/netinet/tcp_output.c  Fri Jul 02 21:02:05 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_output.c,v 1.49 1999/07/02 12:45:32 itojun Exp $   */
+/*     $NetBSD: tcp_output.c,v 1.50 1999/07/02 21:02:05 fvdl Exp $     */
 
 /*
 %%% portions-copyright-nrl-95
@@ -773,7 +773,9 @@
 #endif
        default:        /*pacify gcc*/
                ip = NULL;
+#ifdef INET6
                ip6 = NULL;
+#endif
                th = NULL;
                break;
        }
diff -r e12e3402b1c9 -r 01b4e748b127 sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c    Fri Jul 02 20:55:19 1999 +0000
+++ b/sys/netinet/tcp_subr.c    Fri Jul 02 21:02:05 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp_subr.c,v 1.68 1999/07/02 12:45:32 itojun Exp $     */
+/*     $NetBSD: tcp_subr.c,v 1.69 1999/07/02 21:02:05 fvdl Exp $       */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -447,7 +447,9 @@
 #endif
                default:        /*pacify gcc*/
                        ip = NULL;
+#ifdef INET6
                        ip6 = NULL;
+#endif
                        th = NULL;
                        break;
                }



Home | Main Index | Thread Index | Old Index