summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-05-28 14:59:08 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-28 08:16:37 -0700
commit22bfc4936fd587e166f0e212eeb388db41426fd7 (patch)
tree77e22d40463c273bef71a4b798ddafd4eb748d76 /libdivecomputer.c
parente3215123d1d34f98bf72ded187ad9ee201db9789 (diff)
downloadsubsurface-22bfc4936fd587e166f0e212eeb388db41426fd7.tar.gz
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>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index 2522a92fb..6b7874d82 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -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)