mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Reduced structure sizes for optimize, more correct memsize types for vars
This commit is contained in:
parent
6716447dfc
commit
755f815a77
@ -1113,7 +1113,7 @@ typedef struct link_speed
|
|||||||
{
|
{
|
||||||
hc_timer_t timer[LINK_SPEED_COUNT];
|
hc_timer_t timer[LINK_SPEED_COUNT];
|
||||||
ssize_t bytes[LINK_SPEED_COUNT];
|
ssize_t bytes[LINK_SPEED_COUNT];
|
||||||
int pos;
|
u16 pos;
|
||||||
|
|
||||||
} link_speed_t;
|
} link_speed_t;
|
||||||
|
|
||||||
@ -2107,7 +2107,7 @@ typedef struct loopback_ctx
|
|||||||
typedef struct mf
|
typedef struct mf
|
||||||
{
|
{
|
||||||
char mf_buf[0x400];
|
char mf_buf[0x400];
|
||||||
int mf_len;
|
u16 mf_len;
|
||||||
|
|
||||||
} mf_t;
|
} mf_t;
|
||||||
|
|
||||||
|
@ -2929,9 +2929,9 @@ HC_API_CALL void *brain_server_handle_client (void *p)
|
|||||||
|
|
||||||
// opportunity to set counters for stats
|
// 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)
|
if (send_buf[hashes_idx] == 0)
|
||||||
{
|
{
|
||||||
|
@ -1151,7 +1151,7 @@ u32 mp_get_length (const char *mask, const u32 opts_type)
|
|||||||
{
|
{
|
||||||
bool ignore_next = false;
|
bool ignore_next = false;
|
||||||
|
|
||||||
u32 len = 0;
|
size_t len = 0;
|
||||||
|
|
||||||
const size_t mask_len = strlen (mask);
|
const size_t mask_len = strlen (mask);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user