Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2015 02:21:36 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285992 - in head/usr.bin: ypcat ypmatch ypwhich
Message-ID:  <201507290221.t6T2LaTk071443@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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" },



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507290221.t6T2LaTk071443>