svn commit: r249177 - head/lib/libpam/modules/pam_unix

Jung-uk Kim jkim at FreeBSD.org
Fri Apr 5 23:41:35 UTC 2013


Author: jkim
Date: Fri Apr  5 23:41:34 2013
New Revision: 249177
URL: http://svnweb.freebsd.org/changeset/base/249177

Log:
  Fix declaration vs. definition inconsistency.  No functional change.

Modified:
  head/lib/libpam/modules/pam_unix/pam_unix.c

Modified: head/lib/libpam/modules/pam_unix/pam_unix.c
==============================================================================
--- head/lib/libpam/modules/pam_unix/pam_unix.c	Fri Apr  5 23:35:23 2013	(r249176)
+++ head/lib/libpam/modules/pam_unix/pam_unix.c	Fri Apr  5 23:41:34 2013	(r249177)
@@ -460,14 +460,14 @@ to64(char *s, long v, int n)
 }
 
 /* Salt suitable for traditional DES and MD5 */
-void
-makesalt(char salt[SALTSIZE])
+static void
+makesalt(char salt[SALTSIZE + 1])
 {
 	int i;
 
 	/* These are not really random numbers, they are just
 	 * numbers that change to thwart construction of a
-	 * dictionary. This is exposed to the public.
+	 * dictionary.
 	 */
 	for (i = 0; i < SALTSIZE; i += 4)
 		to64(&salt[i], arc4random(), 4);


More information about the svn-src-all mailing list