Fix some old GCC compiler warnings

This commit is contained in:
jsteube
2017-07-06 10:35:25 +02:00
parent 819b53eb1d
commit 8abd7ae9d1
23 changed files with 86 additions and 62 deletions
+4 -3
View File
@@ -8,6 +8,7 @@
#include "memory.h"
#include "event.h"
#include "debugfile.h"
#include "shared.h"
#include "locking.h"
static void debugfile_format_plain (hashcat_ctx_t *hashcat_ctx, const u8 *plain_ptr, const u32 plain_len)
@@ -48,7 +49,7 @@ static void debugfile_format_plain (hashcat_ctx_t *hashcat_ctx, const u8 *plain_
}
else
{
fwrite (plain_ptr, plain_len, 1, debugfile_ctx->fp);
hc_fwrite (plain_ptr, plain_len, 1, debugfile_ctx->fp);
}
}
@@ -67,7 +68,7 @@ void debugfile_write_append (hashcat_ctx_t *hashcat_ctx, const u8 *rule_buf, con
if ((debug_mode == 3) || (debug_mode == 4)) fputc (':', debugfile_ctx->fp);
}
fwrite (rule_buf, rule_len, 1, debugfile_ctx->fp);
hc_fwrite (rule_buf, rule_len, 1, debugfile_ctx->fp);
if (debug_mode == 4)
{
@@ -76,7 +77,7 @@ void debugfile_write_append (hashcat_ctx_t *hashcat_ctx, const u8 *rule_buf, con
debugfile_format_plain (hashcat_ctx, mod_plain_ptr, mod_plain_len);
}
fwrite (EOL, strlen (EOL), 1, debugfile_ctx->fp);
hc_fwrite (EOL, strlen (EOL), 1, debugfile_ctx->fp);
}
int debugfile_init (hashcat_ctx_t *hashcat_ctx)