From f5e9f4dc85ab846afd14f3de81446a7b0fc292de Mon Sep 17 00:00:00 2001 From: magnum Date: Tue, 24 Jul 2018 10:57:54 +0200 Subject: [PATCH] Fix a couple of gcc-6 -Wpointer-sign build warnings. --- src/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/interface.c b/src/interface.c index 7b0b10629..42ca2dc0e 100644 --- a/src/interface.c +++ b/src/interface.c @@ -4950,7 +4950,7 @@ int md5md5_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UNU * This way we can save a special md5md5 kernel and reuse the one from vbull. */ - static const u8 *zero = ""; + static const u8 *zero = (const u8*) ""; const bool parse_rc = parse_and_store_generic_salt ((u8 *) salt->salt_buf, (int *) &salt->salt_len, zero, 0, hashconfig); @@ -13892,7 +13892,7 @@ int krb5tgs_parse_hash (u8 *input_buf, u32 input_len, hash_t *hash_buf, MAYBE_UN if (input_buf[12] == '*') { - char *account_info_start = input_buf + 12; // we want the * char included + char *account_info_start = (char*) input_buf + 12; // we want the * char included char *account_info_stop = strchr ((const char *) account_info_start + 1, '*'); if (account_info_stop == NULL) return (PARSER_SEPARATOR_UNMATCHED);