From 00a5a1160587b7828e80cec9e4fa9d409ab0b820 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Thu, 20 Jul 2000 20:11:36 +0000 Subject: [PATCH] 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 (however I applied a slightly different fix) --- lib/libskey/skeysubr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/libskey/skeysubr.c b/lib/libskey/skeysubr.c index 81284443e7a7..3230c31647e3 100644 --- a/lib/libskey/skeysubr.c +++ b/lib/libskey/skeysubr.c @@ -1,3 +1,5 @@ +/* $FreeBSD$ */ + #include #include #include @@ -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);