From 713b50cde98767cb266657b89eff3144ee828327 Mon Sep 17 00:00:00 2001 From: ragge Date: Sun, 12 Dec 1999 19:51:49 +0000 Subject: [PATCH] Avoid GCC complaints (under some circumstances). --- sys/netinet/tcp_subr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 989f8b6d11c3..621fd14c3906 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_subr.c,v 1.82 1999/12/08 16:22:20 itojun Exp $ */ +/* $NetBSD: tcp_subr.c,v 1.83 1999/12/12 19:51:49 ragge Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -494,6 +494,9 @@ tcp_respond(tp, template, m, th0, ack, seq, flags) ip6->ip6_nxt = IPPROTO_TCP; break; #endif + default: /*pacify gcc*/ + th = NULL; + break; } *th = *th0; xchg(th->th_dport, th->th_sport, u_int16_t);