1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-21 23:58:07 +00:00

Reduced structure sizes for optimize, more correct memsize types for vars

This commit is contained in:
Herman Semenov 2024-07-04 12:25:25 -05:00
parent 6716447dfc
commit 755f815a77
3 changed files with 5 additions and 5 deletions

View File

@ -1113,7 +1113,7 @@ typedef struct link_speed
{
hc_timer_t timer[LINK_SPEED_COUNT];
ssize_t bytes[LINK_SPEED_COUNT];
int pos;
u16 pos;
} link_speed_t;
@ -2107,7 +2107,7 @@ typedef struct loopback_ctx
typedef struct mf
{
char mf_buf[0x400];
int mf_len;
u16 mf_len;
} mf_t;

View File

@ -2929,9 +2929,9 @@ HC_API_CALL void *brain_server_handle_client (void *p)
// opportunity to set counters for stats
int local_lookup_new = 0;
u64 local_lookup_new = 0;
for (i64 hashes_idx = 0; hashes_idx < hashes_cnt; hashes_idx++)
for (u64 hashes_idx = 0; hashes_idx < hashes_cnt; hashes_idx++)
{
if (send_buf[hashes_idx] == 0)
{

View File

@ -1151,7 +1151,7 @@ u32 mp_get_length (const char *mask, const u32 opts_type)
{
bool ignore_next = false;
u32 len = 0;
size_t len = 0;
const size_t mask_len = strlen (mask);