Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet expose the definitions of MIN() and MAX() in sys...
details: https://anonhg.NetBSD.org/src/rev/c8f04dfa72f6
branches: trunk
changeset: 503393:c8f04dfa72f6
user: chs <chs%NetBSD.org@localhost>
date: Mon Feb 05 11:16:31 2001 +0000
description:
expose the definitions of MIN() and MAX() in sys/param.h to the kernel
and use those in favor of a dozen copies scattered around the source tree.
diffstat:
sys/netinet/ip_fil.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 35809a435594 -r c8f04dfa72f6 sys/netinet/ip_fil.c
--- a/sys/netinet/ip_fil.c Mon Feb 05 11:12:05 2001 +0000
+++ b/sys/netinet/ip_fil.c Mon Feb 05 11:16:31 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_fil.c,v 1.64 2000/12/28 21:42:49 thorpej Exp $ */
+/* $NetBSD: ip_fil.c,v 1.65 2001/02/05 11:16:31 chs Exp $ */
/*
* Copyright (C) 1993-2000 by Darren Reed.
@@ -9,7 +9,7 @@
*/
#if !defined(lint)
#if defined(__NetBSD__)
-static const char rcsid[] = "$NetBSD: ip_fil.c,v 1.64 2000/12/28 21:42:49 thorpej Exp $";
+static const char rcsid[] = "$NetBSD: ip_fil.c,v 1.65 2001/02/05 11:16:31 chs Exp $";
#else
static const char sccsid[] = "@(#)ip_fil.c 2.41 6/5/96 (C) 1993-2000 Darren Reed";
static const char rcsid[] = "@(#)Id: ip_fil.c,v 2.42.2.15 2000/08/05 14:49:08 darrenr Exp";
@@ -116,9 +116,6 @@
#if defined(__FreeBSD_version) && (__FreeBSD_version >= 300000)
# include <sys/malloc.h>
#endif
-#ifndef MIN
-# define MIN(a,b) (((a)<(b))?(a):(b))
-#endif
#if !SOLARIS && defined(_KERNEL) && !defined(__sgi)
# include <sys/kernel.h>
extern int ip_optcopy __P((struct ip *, struct ip *));
Home |
Main Index |
Thread Index |
Old Index