Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Remove some routing specific sysctl function declaration...
details: https://anonhg.NetBSD.org/src/rev/e220b57d715b
branches: trunk
changeset: 484947:e220b57d715b
user: simonb <simonb%NetBSD.org@localhost>
date: Sat Apr 15 17:51:27 2000 +0000
description:
Remove some routing specific sysctl function declarations from
<sys/sysctl.h> and make them static in net/rtsock.c.
diffstat:
sys/net/rtsock.c | 11 +++++++----
sys/sys/sysctl.h | 5 +----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (65 lines):
diff -r a5d59522a4f7 -r e220b57d715b sys/net/rtsock.c
--- a/sys/net/rtsock.c Sat Apr 15 17:43:53 2000 +0000
+++ b/sys/net/rtsock.c Sat Apr 15 17:51:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtsock.c,v 1.39 2000/03/30 09:45:40 augustss Exp $ */
+/* $NetBSD: rtsock.c,v 1.40 2000/04/15 17:51:28 simonb Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -103,6 +103,9 @@
static int rt_msg2 __P((int, struct rt_addrinfo *, caddr_t, struct walkarg *,
int *));
static void rt_xaddrs __P((caddr_t, caddr_t, struct rt_addrinfo *));
+static int sysctl_dumpentry __P((struct radix_node *, void *));
+static int sysctl_iflist __P((int, struct walkarg *, int));
+static int sysctl_rtable __P((int *, u_int, void *, size_t *, void *, size_t));
static __inline void rt_adjustcount __P((int, int));
/* Sleazy use of local variables throughout file, warning!!!! */
@@ -816,7 +819,7 @@
/*
* This is used in dumping the kernel table via sysctl().
*/
-int
+static int
sysctl_dumpentry(rn, v)
struct radix_node *rn;
void *v;
@@ -858,7 +861,7 @@
return (error);
}
-int
+static int
sysctl_iflist(af, w, type)
int af;
struct walkarg *w;
@@ -989,7 +992,7 @@
return (0);
}
-int
+static int
sysctl_rtable(name, namelen, where, given, new, newlen)
int *name;
u_int namelen;
diff -r a5d59522a4f7 -r e220b57d715b sys/sys/sysctl.h
--- a/sys/sys/sysctl.h Sat Apr 15 17:43:53 2000 +0000
+++ b/sys/sys/sysctl.h Sat Apr 15 17:51:27 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysctl.h,v 1.44 2000/04/15 17:43:53 simonb Exp $ */
+/* $NetBSD: sysctl.h,v 1.45 2000/04/15 17:51:27 simonb Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -475,9 +475,6 @@
int sysctl_doeproc __P((int *, u_int, char *, size_t *));
struct radix_node;
struct walkarg;
-int sysctl_dumpentry __P((struct radix_node *, void *));
-int sysctl_iflist __P((int, struct walkarg *, int));
-int sysctl_rtable __P((int *, u_int, void *, size_t *, void *, size_t));
int sysctl_clockrate __P((char *, size_t *));
int sysctl_vnode __P((char *, size_t *, struct proc *));
int sysctl_ntptime __P((char *, size_t *));
Home |
Main Index |
Thread Index |
Old Index