mirror of
https://github.com/vanhauser-thc/thc-hydra.git
synced 2025-08-20 13:23:57 -07:00
Remove some compiler warnings
This commit is contained in:
parent
c83a71ae87
commit
b8f88efb46
3 changed files with 3 additions and 3 deletions
|
@ -322,7 +322,7 @@ void hdrrepv(ptr_header_node * ptr_head, char *hdrname, char *new_value) {
|
|||
if (cur_ptr->value)
|
||||
strcpy(cur_ptr->value, new_value);
|
||||
else {
|
||||
hydra_report(stderr, "[ERROR] Out of memory (hdrrepv %d)", strlen(new_value) + 1);
|
||||
hydra_report(stderr, "[ERROR] Out of memory (hdrrepv %lu)", strlen(new_value) + 1);
|
||||
hydra_child_exit(0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ int start_teamspeak(int s, char *ip, int port, unsigned char options, char *misc
|
|||
strcpy((char *) &teamspeak.login, "");
|
||||
|
||||
#ifdef HAVE_ZLIB
|
||||
teamspeak.crc = crc32(0L, &teamspeak, sizeof(struct team_speak));
|
||||
teamspeak.crc = crc32(0L, (const Bytef *)&teamspeak, sizeof(struct team_speak));
|
||||
#else
|
||||
teamspeak.crc = crc32(&teamspeak, sizeof(struct team_speak));
|
||||
#endif
|
||||
|
|
2
hydra.c
2
hydra.c
|
@ -732,7 +732,7 @@ void hydra_restore_write(int print_msg) {
|
|||
for (j = 0; j < hydra_options.max_use; j++) {
|
||||
memcpy((char *) &hh, hydra_heads[j], sizeof(hydra_head));
|
||||
if (j == 0 && debug) {
|
||||
printf("[DEBUG] sizeof hydra_head: %d\n", sizeof(hydra_head));
|
||||
printf("[DEBUG] sizeof hydra_head: %lu\n", sizeof(hydra_head));
|
||||
printf("[DEBUG] memcmp: %d\n", memcmp(hydra_heads[j], &hh, sizeof(hydra_head)));
|
||||
}
|
||||
hh.active = 0; // re-enable disabled heads
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue