aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ypcat
diff options
context:
space:
mode:
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)