svn commit: r280716 - head/sbin/md5

Xin LI delphij at FreeBSD.org
Thu Mar 26 22:34:28 UTC 2015


Author: delphij
Date: Thu Mar 26 22:34:27 2015
New Revision: 280716
URL: https://svnweb.freebsd.org/changeset/base/280716

Log:
   - Correct type for checkAgainst.
   - Staticify flags that are not used outside the file scope.
  
  PR:		bin/193471
  Submitted by:	Robert Sprowson <webpages sprow.co.uk>
  MFC after:	2 weeks

Modified:
  head/sbin/md5/md5.c

Modified: head/sbin/md5/md5.c
==============================================================================
--- head/sbin/md5/md5.c	Thu Mar 26 22:31:55 2015	(r280715)
+++ head/sbin/md5/md5.c	Thu Mar 26 22:34:27 2015	(r280716)
@@ -42,11 +42,11 @@ __FBSDID("$FreeBSD$");
 #define TEST_BLOCK_COUNT 100000
 #define MDTESTCOUNT 8
 
-int qflag;
-int rflag;
-int sflag;
-unsigned char* checkAgainst;
-int	checksFailed;
+static int qflag;
+static int rflag;
+static int sflag;
+static char* checkAgainst;
+static int checksFailed;
 
 typedef void (DIGEST_Init)(void *);
 typedef void (DIGEST_Update)(void *, const unsigned char *, size_t);


More information about the svn-src-head mailing list