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)
This commit is contained in:
parent
61203ed3a0
commit
00a5a11605
@ -1,3 +1,5 @@
|
|||||||
|
/* $FreeBSD$ */
|
||||||
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -21,7 +23,7 @@ const char *passwd; /* Password, any length */
|
|||||||
{
|
{
|
||||||
char *buf;
|
char *buf;
|
||||||
MDX_CTX md;
|
MDX_CTX md;
|
||||||
u_long results[4];
|
u_int32_t results[4];
|
||||||
unsigned int buflen;
|
unsigned int buflen;
|
||||||
|
|
||||||
buflen = strlen(seed) + strlen(passwd);
|
buflen = strlen(seed) + strlen(passwd);
|
||||||
@ -51,7 +53,7 @@ f(x)
|
|||||||
char *x;
|
char *x;
|
||||||
{
|
{
|
||||||
MDX_CTX md;
|
MDX_CTX md;
|
||||||
u_long results[4];
|
u_int32_t results[4];
|
||||||
|
|
||||||
MDXInit(&md);
|
MDXInit(&md);
|
||||||
MDXUpdate(&md,(unsigned char *)x,8);
|
MDXUpdate(&md,(unsigned char *)x,8);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user