aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/passwd/local_passwd.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-03-11 14:06:52 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-03-11 14:06:52 +0000
commit28c4ca5ce62e557799ce99ced1b086f776b671c4 (patch)
treeb6548c4940c4f076a11233a6aa221df8430657d8 /usr.bin/passwd/local_passwd.c
parent2c8bf35a0557a3f9b6ca1cfd14a3be0cf39eb3cc (diff)
downloadsrc-28c4ca5ce62e557799ce99ced1b086f776b671c4.tar.gz
src-28c4ca5ce62e557799ce99ced1b086f776b671c4.zip
Fix srandom arg type according to Lite2
Notes
Notes: svn path=/head/; revision=23698
Diffstat (limited to 'usr.bin/passwd/local_passwd.c')
-rw-r--r--usr.bin/passwd/local_passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/passwd/local_passwd.c b/usr.bin/passwd/local_passwd.c
index b28d673b41e7..92e59deceed2 100644
--- a/usr.bin/passwd/local_passwd.c
+++ b/usr.bin/passwd/local_passwd.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: local_passwd.c,v 1.13 1997/02/22 19:56:34 peter Exp $
+ * $Id: local_passwd.c,v 1.14 1997/03/10 07:46:03 ache Exp $
*/
#ifndef lint
@@ -152,7 +152,7 @@ getnewpasswd(pw, nis)
(void)printf("Mismatch; try again, EOF to quit.\n");
}
/* grab a random printable character that isn't a colon */
- (void)srandom((unsigned)(time(NULL) ^ getpid()));
+ (void)srandom((unsigned long)(time(NULL) ^ getpid()));
#ifdef NEWSALT
salt[0] = _PASSWORD_EFMT1;
to64(&salt[1], (long)(29 * 25), 4);