+2005-06-03:
+ * Applied patch #1214251 from Thorsten Kukuk for some compiler warnings.
+
2005-02-14:
* Integrated the redhat/fedora patch for broken 64bit dictionaries
char *prefix;
char *mode;
{
- uint32_t i;
int use64 = 0;
static PWDICT pdesc;
static PWDICT64 pdesc64;
char iname[STRINGSIZE];
char dname[STRINGSIZE];
char wname[STRINGSIZE];
- char buffer[STRINGSIZE];
FILE *dfp;
FILE *ifp;
FILE *wfp;
return ((PWDICT *) 0);
}
- if (pdesc.wfp = fopen(wname, mode))
+ if ((pdesc.wfp = fopen(wname, mode)))
{
pdesc.flags |= PFOR_USEHWMS;
}
bptr = buffer;
- for (ostr = data[0]; *(ostr++) = *(bptr++); /* nothing */ );
+ for (ostr = data[0]; (*(ostr++) = *(bptr++)); /* nothing */ );
ostr = data[0];
strcpy(nstr, ostr);
ostr = nstr + *(bptr++);
- while (*(ostr++) = *(bptr++));
+ while ((*(ostr++) = *(bptr++)));
ostr = nstr;
}
#include <stdio.h>
#include <limits.h>
+#include <string.h>
#define IN_CRACKLIB
#include "config.h"
*/
#include <stdio.h>
+#include <string.h>
#define IN_CRACKLIB
#include "config.h"
if (!buffer[0])
{
- fprintf(stderr, "skipping line: %lu\n", readed);
+ fprintf(stderr, "skipping line: %u\n", readed);
continue;
}
if (PutPW(pwp, buffer))
{
- fprintf(stderr, "error: PutPW '%s' line %luy\n", buffer, readed);
+ fprintf(stderr, "error: PutPW '%s' line %uy\n", buffer, readed);
}
wrote++;
PWClose(pwp);
- printf("%lu %lu\n", readed, wrote);
+ printf("%u %u\n", readed, wrote);
return (0);
}
int
main ()
{
- uint32_t i;
PWDICT *pwp;
char buffer[STRINGSIZE];
Chop(buffer);
i = FindPW(pwp, buffer);
- printf ("%s: %lu%s\n", buffer, i, (i==PW_WORDS(pwp) ? " **** NOT FOUND ****" : ""));
+ printf ("%s: %u%s\n", buffer, i, (i==PW_WORDS(pwp) ? " **** NOT FOUND ****" : ""));
}
return (0);
{
uint32_t i;
PWDICT *pwp;
- char buffer[STRINGSIZE];
if (argc <= 1)
{