Source-Changes-HG archive

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

[src/trunk]: src/sys Make variable unused outside kern_entropy.c static.



details:   https://anonhg.NetBSD.org/src/rev/671f0041a22b
branches:  trunk
changeset: 932478:671f0041a22b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Fri May 08 15:54:11 2020 +0000

description:
Make variable unused outside kern_entropy.c static.

diffstat:

 sys/kern/kern_entropy.c |  8 ++++----
 sys/sys/entropy.h       |  4 +---
 2 files changed, 5 insertions(+), 7 deletions(-)

diffs (45 lines):

diff -r 57f357245f7b -r 671f0041a22b sys/kern/kern_entropy.c
--- a/sys/kern/kern_entropy.c   Fri May 08 15:53:26 2020 +0000
+++ b/sys/kern/kern_entropy.c   Fri May 08 15:54:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_entropy.c,v 1.16 2020/05/08 00:54:44 riastradh Exp $      */
+/*     $NetBSD: kern_entropy.c,v 1.17 2020/05/08 15:54:11 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.16 2020/05/08 00:54:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_entropy.c,v 1.17 2020/05/08 15:54:11 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -223,8 +223,8 @@
 EVCNT_ATTACH_STATIC(entropy_notify_evcnt);
 
 /* Sysctl knobs */
-bool   entropy_collection = 1;
-bool   entropy_depletion = 0; /* Silly!  */
+static bool    entropy_collection = 1;
+static bool    entropy_depletion = 0; /* Silly!  */
 
 static const struct sysctlnode *entropy_sysctlroot;
 static struct sysctllog                *entropy_sysctllog;
diff -r 57f357245f7b -r 671f0041a22b sys/sys/entropy.h
--- a/sys/sys/entropy.h Fri May 08 15:53:26 2020 +0000
+++ b/sys/sys/entropy.h Fri May 08 15:54:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: entropy.h,v 1.2 2020/05/07 19:05:51 riastradh Exp $    */
+/*     $NetBSD: entropy.h,v 1.3 2020/05/08 15:54:11 riastradh Exp $    */
 
 /*-
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -55,6 +55,4 @@
 int    entropy_kqfilter(struct knote *);
 int    entropy_ioctl(unsigned long, void *);
 
-extern bool    entropy_depletion;
-
 #endif /* _SYS_ENTROPY_H */



Home | Main Index | Thread Index | Old Index