diff options
author | araujo <araujo@FreeBSD.org> | 2015-07-29 02:21:35 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-07-29 02:21:35 +0000 |
commit | 03740b1f15c083c9058fad53a6043321b852a200 (patch) | |
tree | fd12a959d07ff769ce782256f2401880fa0aa9b1 /usr.bin/ypcat/ypcat.c | |
parent | 409c6f37f9f7c0fabc95f6b1b9c0a811095d664d (diff) | |
download | FreeBSD-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.c | 4 |
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" }, |