summaryrefslogtreecommitdiff
path: root/usr.bin/ypwhich
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/ypwhich
parent267dbe63a1dfb8e05eae5f1fad1ed7cc5f7b4b27 (diff)
downloadsrc-test-033af09de113cdcba4b72685dd5311fffb1025c5.tar.gz
src-test-033af09de113cdcba4b72685dd5311fffb1025c5.zip
Staticfy and constify some variables and clean up the code a bit to make it
more readable. No functional change. Differential Revision: D3166 Reviewed by: kib Sponsored by: gandi.net
Notes
Notes: svn path=/head/; revision=285926
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 b31dcae2cb6cf..d02461ebafb96 100644
--- a/usr.bin/ypwhich/ypwhich.c
+++ b/usr.bin/ypwhich/ypwhich.c
@@ -59,9 +59,9 @@ __FBSDID("$FreeBSD$");
extern bool_t xdr_domainname();
-struct ypalias {
+const struct ypalias {
char *alias, *name;
-} ypaliases[] = {
+} static ypaliases[] = {
{ "passwd", "passwd.byname" },
{ "master.passwd", "master.passwd.byname" },
{ "shadow", "shadow.byname" },