aboutsummaryrefslogtreecommitdiff
path: root/sbin/dmesg
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2011-11-04 13:36:02 +0000
committerEd Schouten <ed@FreeBSD.org>2011-11-04 13:36:02 +0000
commit1efe3c6b58ea5d0e5a0d49039d84d00f2370c7de (patch)
tree3cdfecf4c6772b1de7694dadb6b4b6431ecfdb02 /sbin/dmesg
parent543d97bb43fb77ba5b415ea464b9bb32b614d65c (diff)
downloadsrc-1efe3c6b58ea5d0e5a0d49039d84d00f2370c7de.tar.gz
src-1efe3c6b58ea5d0e5a0d49039d84d00f2370c7de.zip
Add missing static keywords for global variables to tools in sbin/.
These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
Notes
Notes: svn path=/head/; revision=227081
Diffstat (limited to 'sbin/dmesg')
-rw-r--r--sbin/dmesg/dmesg.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/dmesg/dmesg.c b/sbin/dmesg/dmesg.c
index f2e513f6106c..002732cc479c 100644
--- a/sbin/dmesg/dmesg.c
+++ b/sbin/dmesg/dmesg.c
@@ -60,11 +60,9 @@ __FBSDID("$FreeBSD$");
#include <vis.h>
#include <sys/syslog.h>
-char s_msgbufp[] = "_msgbufp";
-
-struct nlist nl[] = {
+static struct nlist nl[] = {
#define X_MSGBUF 0
- { s_msgbufp, 0, 0, 0, 0 },
+ { "_msgbufp", 0, 0, 0, 0 },
{ NULL, 0, 0, 0, 0 },
};