Fix some old GCC compiler warnings
This commit is contained in:
+4
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user