From 9f9cc8ed4f154b827f6b717b6d3cd5fbbb89ccf9 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Thu, 7 Aug 2003 00:30:21 +0000 Subject: ansi --- src/lib/libc/crypt/md5crypt.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/lib/libc/crypt/md5crypt.c') diff --git a/src/lib/libc/crypt/md5crypt.c b/src/lib/libc/crypt/md5crypt.c index fb09b375e6..97717e68d5 100644 --- a/src/lib/libc/crypt/md5crypt.c +++ b/src/lib/libc/crypt/md5crypt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: md5crypt.c,v 1.12 2003/06/25 21:16:47 deraadt Exp $ */ +/* $OpenBSD: md5crypt.c,v 1.13 2003/08/07 00:30:21 deraadt Exp $ */ /* * ---------------------------------------------------------------------------- @@ -13,7 +13,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.12 2003/06/25 21:16:47 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: md5crypt.c,v 1.13 2003/08/07 00:30:21 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -28,10 +28,7 @@ static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */ static void to64(char *, u_int32_t, int); static void -to64(s, v, n) - char *s; - u_int32_t v; - int n; +to64(char *s, u_int32_t v, int n) { while (--n >= 0) { *s++ = itoa64[v&0x3f]; @@ -48,9 +45,7 @@ to64(s, v, n) char *md5crypt(const char *pw, const char *salt); char * -md5crypt(pw, salt) - register const char *pw; - register const char *salt; +md5crypt(const char *pw, const char *salt) { /* * This string is magic for this algorithm. Having @@ -151,7 +146,7 @@ md5crypt(pw, salt) *p = '\0'; /* Don't leave anything around in vm they could use. */ - memset(final,0,sizeof final); + memset(final, 0, sizeof final); return passwd; } -- cgit v1.2.3-55-g6feb