summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_media.c6
-rw-r--r--sys/net/if_sl.c4
-rw-r--r--sys/net/if_spppsubr.c12
-rw-r--r--sys/net/route.c4
-rw-r--r--sys/net/zlib.c4
5 files changed, 15 insertions, 15 deletions
diff --git a/sys/net/if_media.c b/sys/net/if_media.c
index 51e6df8..ee12880 100644
--- a/sys/net/if_media.c
+++ b/sys/net/if_media.c
@@ -1,5 +1,5 @@
/* $NetBSD: if_media.c,v 1.1 1997/03/17 02:55:15 thorpej Exp $ */
-/* $Id: if_media.c,v 1.4 1998/02/04 22:33:03 eivind Exp $ */
+/* $Id: if_media.c,v 1.5 1998/02/06 12:13:48 eivind Exp $ */
/*
* Copyright (c) 1997
@@ -62,7 +62,7 @@
* Useful for debugging newly-ported drivers.
*/
-struct ifmedia_entry *ifmedia_match __P((struct ifmedia *ifm,
+static struct ifmedia_entry *ifmedia_match __P((struct ifmedia *ifm,
int flags, int mask));
#ifdef IFMEDIA_DEBUG
@@ -327,7 +327,7 @@ ifmedia_ioctl(ifp, ifr, ifm, cmd)
* Find media entry matching a given ifm word.
*
*/
-struct ifmedia_entry *
+static struct ifmedia_entry *
ifmedia_match(ifm, target, mask)
struct ifmedia *ifm;
int target;
diff --git a/sys/net/if_sl.c b/sys/net/if_sl.c
index 695627c..f72d814 100644
--- a/sys/net/if_sl.c
+++ b/sys/net/if_sl.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_sl.c 8.6 (Berkeley) 2/1/94
- * $Id: if_sl.c,v 1.64 1997/12/19 19:39:01 ache Exp $
+ * $Id: if_sl.c,v 1.65 1998/01/08 23:41:29 eivind Exp $
*/
/*
@@ -174,7 +174,7 @@ PSEUDO_SET(slattach, if_sl);
#define ABT_COUNT 3 /* count of escapes for abort */
#define ABT_WINDOW (ABT_COUNT*2+2) /* in seconds - time to count */
-struct sl_softc sl_softc[NSL];
+static struct sl_softc sl_softc[NSL];
#define FRAME_END 0xc0 /* Frame End */
#define FRAME_ESCAPE 0xdb /* Frame Esc */
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index d5f449f..b457947 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -17,7 +17,7 @@
*
* From: Version 2.4, Thu Apr 30 17:17:21 MSD 1997
*
- * $Id: if_spppsubr.c,v 1.30 1998/01/01 21:27:18 gj Exp $
+ * $Id: if_spppsubr.c,v 1.31 1998/01/08 23:41:31 eivind Exp $
*/
#include "opt_inet.h"
@@ -335,7 +335,7 @@ static void sppp_qflush(struct ifqueue *ifq);
static void sppp_set_ip_addr(struct sppp *sp, u_long src);
/* our control protocol descriptors */
-const struct cp lcp = {
+static const struct cp lcp = {
PPP_LCP, IDX_LCP, CP_LCP, "lcp",
sppp_lcp_up, sppp_lcp_down, sppp_lcp_open, sppp_lcp_close,
sppp_lcp_TO, sppp_lcp_RCR, sppp_lcp_RCN_rej, sppp_lcp_RCN_nak,
@@ -343,7 +343,7 @@ const struct cp lcp = {
sppp_lcp_scr
};
-const struct cp ipcp = {
+static const struct cp ipcp = {
PPP_IPCP, IDX_IPCP, CP_NCP, "ipcp",
sppp_ipcp_up, sppp_ipcp_down, sppp_ipcp_open, sppp_ipcp_close,
sppp_ipcp_TO, sppp_ipcp_RCR, sppp_ipcp_RCN_rej, sppp_ipcp_RCN_nak,
@@ -351,7 +351,7 @@ const struct cp ipcp = {
sppp_ipcp_scr
};
-const struct cp pap = {
+static const struct cp pap = {
PPP_PAP, IDX_PAP, CP_AUTH, "pap",
sppp_null, sppp_null, sppp_pap_open, sppp_pap_close,
sppp_pap_TO, 0, 0, 0,
@@ -359,7 +359,7 @@ const struct cp pap = {
sppp_pap_scr
};
-const struct cp chap = {
+static const struct cp chap = {
PPP_CHAP, IDX_CHAP, CP_AUTH, "chap",
sppp_null, sppp_null, sppp_chap_open, sppp_chap_close,
sppp_chap_TO, 0, 0, 0,
@@ -367,7 +367,7 @@ const struct cp chap = {
sppp_chap_scr
};
-const struct cp *cps[IDX_COUNT] = {
+static const struct cp *cps[IDX_COUNT] = {
&lcp, /* IDX_LCP */
&ipcp, /* IDX_IPCP */
&pap, /* IDX_PAP */
diff --git a/sys/net/route.c b/sys/net/route.c
index f3e7b04..ab1e8ea 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)route.c 8.2 (Berkeley) 11/15/93
- * $Id: route.c,v 1.47 1998/02/04 22:33:03 eivind Exp $
+ * $Id: route.c,v 1.48 1998/02/06 12:13:48 eivind Exp $
*/
#include "opt_inet.h"
@@ -724,7 +724,7 @@ rt_fixdelete(rn, vp)
* changes this way.
*/
#ifdef DEBUG
-int rtfcdebug = 0;
+static int rtfcdebug = 0;
#endif
static int
diff --git a/sys/net/zlib.c b/sys/net/zlib.c
index 15dc7fd..7681c2a 100644
--- a/sys/net/zlib.c
+++ b/sys/net/zlib.c
@@ -11,7 +11,7 @@
* - added Z_PACKET_FLUSH (see zlib.h for details)
* - added inflateIncomp
*
- * $Id: zlib.c,v 1.3 1997/08/19 14:10:48 peter Exp $
+ * $Id: zlib.c,v 1.4 1997/09/01 02:18:13 bde Exp $
*/
/*
@@ -4581,7 +4581,7 @@ z_stream *z;
char *zlib_version = ZLIB_VERSION;
-char *z_errmsg[] = {
+static char *z_errmsg[] = {
"stream end", /* Z_STREAM_END 1 */
"", /* Z_OK 0 */
"file error", /* Z_ERRNO (-1) */
OpenPOWER on IntegriCloud