pam/pam_unix: Sync function declaration and definition.
authorSascha Wildner <saw@online.de>
Tue, 19 Aug 2014 20:11:05 +0000 (22:11 +0200)
committerSascha Wildner <saw@online.de>
Tue, 19 Aug 2014 20:11:30 +0000 (22:11 +0200)
No functional change.

Taken-from: FreeBSD

lib/pam_module/pam_unix/pam_unix.c

index d09097d..ed017df 100644 (file)
@@ -459,14 +459,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);