diff options
author | obrien <obrien@FreeBSD.org> | 2000-07-20 20:11:36 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-07-20 20:11:36 +0000 |
commit | c4acf4b9b2ed9acbbf0256251d8c63b8a305ef36 (patch) | |
tree | 39eb5b73f4113ec2242e37dfbd7adbcd8bb5950a /lib/libskey | |
parent | 982ec76a86023feaadbe998491943a854f0c8e42 (diff) | |
download | FreeBSD-src-c4acf4b9b2ed9acbbf0256251d8c63b8a305ef36.zip FreeBSD-src-c4acf4b9b2ed9acbbf0256251d8c63b8a305ef36.tar.gz |
Fix problem where original author thought `unsigned long' was the best
32-bit type (rather than define his own type based on the type of box
being compiled on).
Submitted by: Mark Abene <phiber@radicalmedia.com>
(however I applied a slightly different fix)
Diffstat (limited to 'lib/libskey')
-rw-r--r-- | lib/libskey/skeysubr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libskey/skeysubr.c b/lib/libskey/skeysubr.c index 8128444..3230c31 100644 --- a/lib/libskey/skeysubr.c +++ b/lib/libskey/skeysubr.c @@ -1,3 +1,5 @@ +/* $FreeBSD$ */ + #include <err.h> #include <stdio.h> #include <stdlib.h> @@ -21,7 +23,7 @@ const char *passwd; /* Password, any length */ { char *buf; MDX_CTX md; - u_long results[4]; + u_int32_t results[4]; unsigned int buflen; buflen = strlen(seed) + strlen(passwd); @@ -51,7 +53,7 @@ f(x) char *x; { MDX_CTX md; - u_long results[4]; + u_int32_t results[4]; MDXInit(&md); MDXUpdate(&md,(unsigned char *)x,8); |