summaryrefslogtreecommitdiffstats
path: root/usr.bin/ypwhich
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/ypwhich
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/ypwhich')
-rw-r--r--usr.bin/ypwhich/ypwhich.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c
index d02461e..14fc1b3 100644
--- a/usr.bin/ypwhich/ypwhich.c
+++ b/usr.bin/ypwhich/ypwhich.c
@@ -59,9 +59,9 @@ __FBSDID("$FreeBSD$");
extern bool_t xdr_domainname();
-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