Remove some compiler warnings

This commit is contained in:
Dario Lombardo 2016-05-31 11:18:45 +02:00
commit b8f88efb46
3 changed files with 3 additions and 3 deletions

View file

@ -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);
}
}

View file

@ -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

View file

@ -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