Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/stand/common Avoid an extern declaration in ....



details:   https://anonhg.NetBSD.org/src/rev/1967d774e9ef
branches:  trunk
changeset: 374399:1967d774e9ef
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Apr 21 22:43:11 2023 +0000

description:
Avoid an extern declaration in .c file.  Just declare it as static.

Suggested on tech-userlevel@.

diffstat:

 sys/arch/hp300/stand/common/if_le.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ab2151776636 -r 1967d774e9ef sys/arch/hp300/stand/common/if_le.c
--- a/sys/arch/hp300/stand/common/if_le.c       Fri Apr 21 21:50:04 2023 +0000
+++ b/sys/arch/hp300/stand/common/if_le.c       Fri Apr 21 22:43:11 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_le.c,v 1.14 2022/11/21 15:36:29 tsutsui Exp $       */
+/*     $NetBSD: if_le.c,v 1.15 2023/04/21 22:43:11 tsutsui Exp $       */
 
 /*
  * Copyright (c) 1993 Adam Glass
@@ -98,7 +98,7 @@ static struct le_sel le0conf[] = {
 };
 #define NLE0CONF (sizeof(le0conf) / sizeof(le0conf[0]))
 
-extern struct netif_stats      le_stats[];
+static struct netif_stats      le_stats[];
 
 static struct netif_dif le_ifs[] = {
 /*     dif_unit        dif_nsel        dif_stats       dif_private     */
@@ -106,7 +106,7 @@ static struct netif_dif le_ifs[] = {
 };
 #define NLE_IFS (sizeof(le_ifs) / sizeof(le_ifs[0]))
 
-struct netif_stats le_stats[NLE_IFS];
+static struct netif_stats le_stats[NLE_IFS];
 
 struct netif_driver le_driver = {
        "le",                   /* netif_bname */



Home | Main Index | Thread Index | Old Index