diff options
author | markm <markm@FreeBSD.org> | 2002-03-06 17:18:09 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-03-06 17:18:09 +0000 |
commit | ff64831dcfcd492ea83c2737516a9d787ad12777 (patch) | |
tree | fd253f00aca83bdf5f7478695b3926570dd4df84 /lib/libcrypt/misc.c | |
parent | 506a396cdb6278fa21dba5d8afa255c493b62098 (diff) | |
download | FreeBSD-src-ff64831dcfcd492ea83c2737516a9d787ad12777.zip FreeBSD-src-ff64831dcfcd492ea83c2737516a9d787ad12777.tar.gz |
No functional change, but big code cleanup. WARNS, lint(1) and style(9).
Diffstat (limited to 'lib/libcrypt/misc.c')
-rw-r--r-- | lib/libcrypt/misc.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libcrypt/misc.c b/lib/libcrypt/misc.c index de2e024..594c580 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]; |