summaryrefslogtreecommitdiffstats
path: root/uemis.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 /uemis.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 'uemis.c')
-rw-r--r--uemis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis.c b/uemis.c
index b2eda8f73..e60e94a00 100644
--- a/uemis.c
+++ b/uemis.c
@@ -90,7 +90,7 @@ static int uemis_convert_base64(char *base64, uint8_t **data)
fprintf(stderr, "Out of memory\n");
goto bail;
}
- decode(base64, *data, len);
+ decode((unsigned char *)base64, *data, len);
if (memcmp(*data, "Dive\01\00\00", 7))
fprintf(stderr, "Missing Dive100 header\n");