From 006a388bb64106d24d6e8065b8547ff6ec3c06f0 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Wed, 29 Jul 2015 02:21:35 +0000 Subject: [PATCH] Compilers will complain the usage of obsolescent variable declarations. Also it will fix the build problem with sparc64. Submitted by: ed@ --- usr.bin/ypcat/ypcat.c | 4 ++-- usr.bin/ypmatch/ypmatch.c | 4 ++-- usr.bin/ypwhich/ypwhich.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c index b3d90336c61a..d3a7f4177997 100644 --- a/usr.bin/ypcat/ypcat.c +++ b/usr.bin/ypcat/ypcat.c @@ -47,9 +47,9 @@ __FBSDID("$FreeBSD$"); #include #include -const struct ypalias { +static const struct ypalias { char *alias, *name; -} static ypaliases[] = { +} ypaliases[] = { { "passwd", "passwd.byname" }, { "master.passwd", "master.passwd.byname" }, { "shadow", "shadow.byname" }, diff --git a/usr.bin/ypmatch/ypmatch.c b/usr.bin/ypmatch/ypmatch.c index d6b58c2c5d31..ff4253fbaf0c 100644 --- a/usr.bin/ypmatch/ypmatch.c +++ b/usr.bin/ypmatch/ypmatch.c @@ -47,9 +47,9 @@ __FBSDID("$FreeBSD$"); #include #include -const struct ypalias { +static const struct ypalias { char *alias, *name; -} static ypaliases[] = { +} ypaliases[] = { { "passwd", "passwd.byname" }, { "master.passwd", "master.passwd.byname" }, { "shadow", "shadow.byname" }, diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c index d02461ebafb9..14fc1b344125 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" },