From owner-svn-src-head@freebsd.org Wed Jul 29 02:21:37 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3C7379AD5E6; Wed, 29 Jul 2015 02:21:37 +0000 (UTC) (envelope-from araujo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0ECF61EC; Wed, 29 Jul 2015 02:21:37 +0000 (UTC) (envelope-from araujo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t6T2LaCC071446; Wed, 29 Jul 2015 02:21:36 GMT (envelope-from araujo@FreeBSD.org) Received: (from araujo@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t6T2LaTk071443; Wed, 29 Jul 2015 02:21:36 GMT (envelope-from araujo@FreeBSD.org) Message-Id: <201507290221.t6T2LaTk071443@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: araujo set sender to araujo@FreeBSD.org using -f From: Marcelo Araujo Date: Wed, 29 Jul 2015 02:21:36 +0000 (UTC) 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 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 02:21:37 -0000 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 #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" }, 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 #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" }, 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" },