summaryrefslogtreecommitdiffstats
path: root/usr.bin/ypcat/ypcat.c
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2015-07-29 02:21:35 +0000
committeraraujo <araujo@FreeBSD.org>2015-07-29 02:21:35 +0000
commit03740b1f15c083c9058fad53a6043321b852a200 (patch)
treefd12a959d07ff769ce782256f2401880fa0aa9b1 /usr.bin/ypcat/ypcat.c
parent409c6f37f9f7c0fabc95f6b1b9c0a811095d664d (diff)
downloadFreeBSD-src-03740b1f15c083c9058fad53a6043321b852a200.zip
FreeBSD-src-03740b1f15c083c9058fad53a6043321b852a200.tar.gz
Compilers will complain the usage of obsolescent variable declarations.
Also it will fix the build problem with sparc64. Submitted by: ed@
Diffstat (limited to 'usr.bin/ypcat/ypcat.c')
-rw-r--r--usr.bin/ypcat/ypcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c
index b3d9033..d3a7f41 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>
-const struct ypalias {
+static const struct ypalias {
char *alias, *name;
-} static ypaliases[] = {
+} ypaliases[] = {
{ "passwd", "passwd.byname" },
{ "master.passwd", "master.passwd.byname" },
{ "shadow", "shadow.byname" },
OpenPOWER on IntegriCloud