summaryrefslogtreecommitdiff
path: root/lib/libcrypt/misc.c
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-03-06 17:18:09 +0000
committerMark Murray <markm@FreeBSD.org>2002-03-06 17:18:09 +0000
commitf2ac424af7b980ba4d858ecfd1644ce197d6869d (patch)
treefd253f00aca83bdf5f7478695b3926570dd4df84 /lib/libcrypt/misc.c
parent214169a10a56ee9a2271b16e36fe40835eb2d1f5 (diff)
Notes
Diffstat (limited to 'lib/libcrypt/misc.c')
-rw-r--r--lib/libcrypt/misc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libcrypt/misc.c b/lib/libcrypt/misc.c
index de2e024d809b..594c5801c425 100644
--- a/lib/libcrypt/misc.c
+++ b/lib/libcrypt/misc.c
@@ -30,14 +30,15 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
+#include <sys/types.h>
+
+#include "crypt.h"
+
+static char itoa64[] = /* 0 ... 63 => ascii - 64 */
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
void
-_crypt_to64(s, v, n)
- char *s;
- unsigned long v;
- int n;
+_crypt_to64(char *s, u_long v, int n)
{
while (--n >= 0) {
*s++ = itoa64[v&0x3f];