mirror of
https://github.com/opnsense/src.git
synced 2026-02-23 09:56:47 -05:00
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 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue