From b8f88efb4644349f118ea7056543ed80e464173d Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Tue, 31 May 2016 11:18:45 +0200 Subject: [PATCH] Remove some compiler warnings --- hydra-http-form.c | 2 +- hydra-teamspeak.c | 2 +- hydra.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hydra-http-form.c b/hydra-http-form.c index 5ab2926..72f3970 100644 --- a/hydra-http-form.c +++ b/hydra-http-form.c @@ -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); } } diff --git a/hydra-teamspeak.c b/hydra-teamspeak.c index c257e4c..7416116 100644 --- a/hydra-teamspeak.c +++ b/hydra-teamspeak.c @@ -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 diff --git a/hydra.c b/hydra.c index 33c15e0..22c5c4b 100644 --- a/hydra.c +++ b/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