svn commit: r285992 - in head/usr.bin: ypcat ypmatch ypwhich

Marcelo Araujo araujo at FreeBSD.org
Wed Jul 29 02:21:37 UTC 2015


Author: araujo (ports committer)
Date: Wed Jul 29 02:21:35 2015
New Revision: 285992
URL: https://svnweb.freebsd.org/changeset/base/285992

Log:
  Compilers will complain the usage of obsolescent variable declarations.
  Also it will fix the build problem with sparc64.
  
  Submitted by:	ed@

Modified:
  head/usr.bin/ypcat/ypcat.c
  head/usr.bin/ypmatch/ypmatch.c
  head/usr.bin/ypwhich/ypwhich.c

Modified: head/usr.bin/ypcat/ypcat.c
==============================================================================
--- head/usr.bin/ypcat/ypcat.c	Wed Jul 29 00:57:54 2015	(r285991)
+++ head/usr.bin/ypcat/ypcat.c	Wed Jul 29 02:21:35 2015	(r285992)
@@ -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" },

Modified: head/usr.bin/ypmatch/ypmatch.c
==============================================================================
--- head/usr.bin/ypmatch/ypmatch.c	Wed Jul 29 00:57:54 2015	(r285991)
+++ head/usr.bin/ypmatch/ypmatch.c	Wed Jul 29 02:21:35 2015	(r285992)
@@ -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" },

Modified: head/usr.bin/ypwhich/ypwhich.c
==============================================================================
--- head/usr.bin/ypwhich/ypwhich.c	Wed Jul 29 00:57:54 2015	(r285991)
+++ head/usr.bin/ypwhich/ypwhich.c	Wed Jul 29 02:21:35 2015	(r285992)
@@ -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" },


More information about the svn-src-head mailing list