aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ypcat
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2015-07-28 02:32:40 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2015-07-28 02:32:40 +0000
commit033af09de113cdcba4b72685dd5311fffb1025c5 (patch)
tree474a3116b16d6874dad78ef520947dc99f16dd88 /usr.bin/ypcat
parent267dbe63a1dfb8e05eae5f1fad1ed7cc5f7b4b27 (diff)
downloadsrc-033af09de113cdcba4b72685dd5311fffb1025c5.tar.gz
src-033af09de113cdcba4b72685dd5311fffb1025c5.zip
Notes
Diffstat (limited to 'usr.bin/ypcat')
-rw-r--r--usr.bin/ypcat/ypcat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c
index 3484bc9c1f4c..b3d90336c61a 100644
--- a/usr.bin/ypcat/ypcat.c
+++ b/usr.bin/ypcat/ypcat.c
@@ -47,9 +47,9 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <unistd.h>
-struct ypalias {
+const struct ypalias {
char *alias, *name;
-} ypaliases[] = {
+} static ypaliases[] = {
{ "passwd", "passwd.byname" },
{ "master.passwd", "master.passwd.byname" },
{ "shadow", "shadow.byname" },
@@ -62,7 +62,7 @@ struct ypalias {
{ "ethers", "ethers.byname" },
};
-int key;
+static int key;
static void
usage(void)