Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Remove #else clause of __STDC__
details: https://anonhg.NetBSD.org/src/rev/137224ca407e
branches: trunk
changeset: 566036:137224ca407e
user: matt <matt%NetBSD.org@localhost>
date: Mon Apr 26 01:31:56 2004 +0000
description:
Remove #else clause of __STDC__
diffstat:
sys/netinet/igmp.c | 10 ++--------
sys/netinet/in_gif.c | 10 ++--------
sys/netinet/ip_encap.c | 8 +-------
sys/netinet/ip_gre.c | 16 ++--------------
sys/netinet/ip_icmp.c | 10 ++--------
sys/netinet/ip_mroute.c | 10 ++--------
sys/netinet/ip_output.c | 10 ++--------
sys/netinet/raw_ip.c | 16 ++--------------
sys/netinet/tcp_input.c | 9 ++-------
9 files changed, 17 insertions(+), 82 deletions(-)
diffs (truncated from 309 to 300 lines):
diff -r 4947d1060ad6 -r 137224ca407e sys/netinet/igmp.c
--- a/sys/netinet/igmp.c Mon Apr 26 01:19:59 2004 +0000
+++ b/sys/netinet/igmp.c Mon Apr 26 01:31:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: igmp.c,v 1.37 2004/04/25 16:42:42 simonb Exp $ */
+/* $NetBSD: igmp.c,v 1.38 2004/04/26 01:31:56 matt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igmp.c,v 1.37 2004/04/25 16:42:42 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igmp.c,v 1.38 2004/04/26 01:31:56 matt Exp $");
#include "opt_mrouting.h"
@@ -137,13 +137,7 @@
}
void
-#if __STDC__
igmp_input(struct mbuf *m, ...)
-#else
-igmp_input(m, va_alist)
- struct mbuf *m;
- va_dcl
-#endif
{
int proto;
int iphlen;
diff -r 4947d1060ad6 -r 137224ca407e sys/netinet/in_gif.c
--- a/sys/netinet/in_gif.c Mon Apr 26 01:19:59 2004 +0000
+++ b/sys/netinet/in_gif.c Mon Apr 26 01:31:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in_gif.c,v 1.35 2004/04/22 01:01:41 matt Exp $ */
+/* $NetBSD: in_gif.c,v 1.36 2004/04/26 01:31:56 matt Exp $ */
/* $KAME: in_gif.c,v 1.66 2001/07/29 04:46:09 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.35 2004/04/22 01:01:41 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in_gif.c,v 1.36 2004/04/26 01:31:56 matt Exp $");
#include "opt_inet.h"
#include "opt_iso.h"
@@ -212,13 +212,7 @@
}
void
-#if __STDC__
in_gif_input(struct mbuf *m, ...)
-#else
-in_gif_input(m, va_alist)
- struct mbuf *m;
- va_dcl
-#endif
{
int off, proto;
struct ifnet *gifp = NULL;
diff -r 4947d1060ad6 -r 137224ca407e sys/netinet/ip_encap.c
--- a/sys/netinet/ip_encap.c Mon Apr 26 01:19:59 2004 +0000
+++ b/sys/netinet/ip_encap.c Mon Apr 26 01:31:56 2004 +0000
@@ -70,7 +70,7 @@
#define USE_RADIX
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.17 2004/03/04 15:15:06 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.18 2004/04/26 01:31:56 matt Exp $");
#include "opt_mrouting.h"
#include "opt_inet.h"
@@ -290,13 +290,7 @@
}
void
-#if __STDC__
encap4_input(struct mbuf *m, ...)
-#else
-encap4_input(m, va_alist)
- struct mbuf *m;
- va_dcl
-#endif
{
int off, proto;
va_list ap;
diff -r 4947d1060ad6 -r 137224ca407e sys/netinet/ip_gre.c
--- a/sys/netinet/ip_gre.c Mon Apr 26 01:19:59 2004 +0000
+++ b/sys/netinet/ip_gre.c Mon Apr 26 01:31:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_gre.c,v 1.29 2003/09/05 23:02:43 itojun Exp $ */
+/* $NetBSD: ip_gre.c,v 1.30 2004/04/26 01:31:56 matt Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_gre.c,v 1.29 2003/09/05 23:02:43 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_gre.c,v 1.30 2004/04/26 01:31:56 matt Exp $");
#include "gre.h"
#if NGRE > 0
@@ -113,13 +113,7 @@
* This really is simple
*/
void
-#if __STDC__
gre_input(struct mbuf *m, ...)
-#else
-gre_input(m, va_alist)
- struct mbuf *m;
- va_dcl
-#endif
{
int off, ret, proto;
va_list ap;
@@ -257,13 +251,7 @@
* between IP header and payload
*/
void
-#if __STDC__
gre_mobile_input(struct mbuf *m, ...)
-#else
-gre_mobile_input(m, va_alist)
- struct mbuf *m;
- va_dcl
-#endif
{
struct ip *ip;
struct mobip_h *mip;
diff -r 4947d1060ad6 -r 137224ca407e sys/netinet/ip_icmp.c
--- a/sys/netinet/ip_icmp.c Mon Apr 26 01:19:59 2004 +0000
+++ b/sys/netinet/ip_icmp.c Mon Apr 26 01:31:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_icmp.c,v 1.82 2004/03/24 15:34:54 atatat Exp $ */
+/* $NetBSD: ip_icmp.c,v 1.83 2004/04/26 01:31:56 matt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -101,7 +101,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.82 2004/03/24 15:34:54 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_icmp.c,v 1.83 2004/04/26 01:31:56 matt Exp $");
#include "opt_ipsec.h"
@@ -371,13 +371,7 @@
* Process a received ICMP message.
*/
void
-#if __STDC__
icmp_input(struct mbuf *m, ...)
-#else
-icmp_input(m, va_alist)
- struct mbuf *m;
- va_dcl
-#endif
{
int proto;
struct icmp *icp;
diff -r 4947d1060ad6 -r 137224ca407e sys/netinet/ip_mroute.c
--- a/sys/netinet/ip_mroute.c Mon Apr 26 01:19:59 2004 +0000
+++ b/sys/netinet/ip_mroute.c Mon Apr 26 01:31:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_mroute.c,v 1.84 2004/04/22 01:01:41 matt Exp $ */
+/* $NetBSD: ip_mroute.c,v 1.85 2004/04/26 01:31:57 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -86,7 +86,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.84 2004/04/22 01:01:41 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.85 2004/04/26 01:31:57 matt Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -1591,13 +1591,7 @@
* De-encapsulate a packet and feed it back through ip input.
*/
static void
-#if __STDC__
vif_input(struct mbuf *m, ...)
-#else
-vif_input(m, va_alist)
- struct mbuf *m;
- va_dcl
-#endif
{
int off, proto;
va_list ap;
diff -r 4947d1060ad6 -r 137224ca407e sys/netinet/ip_output.c
--- a/sys/netinet/ip_output.c Mon Apr 26 01:19:59 2004 +0000
+++ b/sys/netinet/ip_output.c Mon Apr 26 01:31:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_output.c,v 1.130 2004/03/02 02:28:28 thorpej Exp $ */
+/* $NetBSD: ip_output.c,v 1.131 2004/04/26 01:31:57 matt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.130 2004/03/02 02:28:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_output.c,v 1.131 2004/04/26 01:31:57 matt Exp $");
#include "opt_pfil_hooks.h"
#include "opt_inet.h"
@@ -163,13 +163,7 @@
* The mbuf opt, if present, will not be freed.
*/
int
-#if __STDC__
ip_output(struct mbuf *m0, ...)
-#else
-ip_output(m0, va_alist)
- struct mbuf *m0;
- va_dcl
-#endif
{
struct ip *ip;
struct ifnet *ifp;
diff -r 4947d1060ad6 -r 137224ca407e sys/netinet/raw_ip.c
--- a/sys/netinet/raw_ip.c Mon Apr 26 01:19:59 2004 +0000
+++ b/sys/netinet/raw_ip.c Mon Apr 26 01:31:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: raw_ip.c,v 1.78 2003/11/19 18:39:34 jonathan Exp $ */
+/* $NetBSD: raw_ip.c,v 1.79 2004/04/26 01:31:57 matt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.78 2003/11/19 18:39:34 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip.c,v 1.79 2004/04/26 01:31:57 matt Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -133,13 +133,7 @@
* mbuf chain.
*/
void
-#if __STDC__
rip_input(struct mbuf *m, ...)
-#else
-rip_input(m, va_alist)
- struct mbuf *m;
- va_dcl
-#endif
{
int proto;
struct ip *ip = mtod(m, struct ip *);
@@ -308,13 +302,7 @@
* Tack on options user may have setup with control call.
*/
int
-#if __STDC__
rip_output(struct mbuf *m, ...)
-#else
-rip_output(m, va_alist)
- struct mbuf *m;
- va_dcl
-#endif
{
struct inpcb *inp;
struct ip *ip;
diff -r 4947d1060ad6 -r 137224ca407e sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c Mon Apr 26 01:19:59 2004 +0000
+++ b/sys/netinet/tcp_input.c Mon Apr 26 01:31:56 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.201 2004/04/25 22:25:03 jonathan Exp $ */
+/* $NetBSD: tcp_input.c,v 1.202 2004/04/26 01:31:57 matt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.201 2004/04/25 22:25:03 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.202 2004/04/26 01:31:57 matt Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -778,12 +778,7 @@
* protocol specification dated September, 1981 very closely.
*/
void
Home |
Main Index |
Thread Index |
Old Index