Add explicit casts to silence compiler warnings

clang complais when converting (char *) to (unsigned char *), so tell
it it's fine.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2015-05-28 14:59:08 +02:00 committed by Dirk Hohndel
parent e3215123d1
commit 22bfc4936f
6 changed files with 18 additions and 18 deletions

View file

@ -409,7 +409,7 @@ static uint32_t calculate_diveid(const unsigned char *fingerprint, unsigned int
#ifdef DC_FIELD_STRING
static uint32_t calculate_string_hash(const char *str)
{
return calculate_diveid(str, strlen(str));
return calculate_diveid((const unsigned char *)str, strlen(str));
}
static void parse_string_field(struct dive *dive, dc_field_string_t *str)