Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 2015 18:23:07 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r280767 - head/sbin/md5
Message-ID:  <201503271823.t2RIN7sX000292@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Fri Mar 27 18:23:06 2015
New Revision: 280767
URL: https://svnweb.freebsd.org/changeset/base/280767

Log:
  Fix remaining warnings.
  
  MFC after:	2 weeks

Modified:
  head/sbin/md5/Makefile
  head/sbin/md5/md5.c

Modified: head/sbin/md5/Makefile
==============================================================================
--- head/sbin/md5/Makefile	Fri Mar 27 17:36:22 2015	(r280766)
+++ head/sbin/md5/Makefile	Fri Mar 27 18:23:06 2015	(r280767)
@@ -13,9 +13,6 @@ MLINKS=	md5.1 rmd160.1 \
 	md5.1 sha256.1 \
 	md5.1 sha512.1
 
-NO_WMISSING_VARIABLE_DECLARATIONS=
-WFORMAT?=	1
-
 LIBADD=	md
 
 .include <bsd.prog.mk>

Modified: head/sbin/md5/md5.c
==============================================================================
--- head/sbin/md5/md5.c	Fri Mar 27 17:36:22 2015	(r280766)
+++ head/sbin/md5/md5.c	Fri Mar 27 18:23:06 2015	(r280767)
@@ -91,7 +91,7 @@ typedef union {
 
 /* algorithm function table */
 
-struct Algorithm_t Algorithm[] = {
+static struct Algorithm_t Algorithm[] = {
 	{ "md5", "MD5", &MD5TestOutput, (DIGEST_Init*)&MD5Init,
 		(DIGEST_Update*)&MD5_Update, (DIGEST_End*)&MD5End,
 		&MD5Data, &MD5File },
@@ -282,7 +282,7 @@ MDTimeTrial(Algorithm_t *alg)
  * Digests a reference suite of strings and prints the results.
  */
 
-const char *MDTestInput[MDTESTCOUNT] = {
+static const char *MDTestInput[MDTESTCOUNT] = {
 	"",
 	"a",
 	"abc",



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