Module Name: src Committed By: tsutsui Date: Fri Apr 21 22:43:11 UTC 2023
Modified Files: src/sys/arch/hp300/stand/common: if_le.c Log Message: Avoid an extern declaration in .c file. Just declare it as static. Suggested on tech-userlevel@. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/hp300/stand/common/if_le.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hp300/stand/common/if_le.c diff -u src/sys/arch/hp300/stand/common/if_le.c:1.14 src/sys/arch/hp300/stand/common/if_le.c:1.15 --- src/sys/arch/hp300/stand/common/if_le.c:1.14 Mon Nov 21 15:36:29 2022 +++ src/sys/arch/hp300/stand/common/if_le.c Fri Apr 21 22:43:11 2023 @@ -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 */