summaryrefslogtreecommitdiffstats
path: root/cochran.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 /cochran.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 'cochran.c')
-rw-r--r--cochran.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cochran.c b/cochran.c
index fe65ee2ce..267fe2b4a 100644
--- a/cochran.c
+++ b/cochran.c
@@ -200,7 +200,7 @@ static void cochran_parse_header(const unsigned char *decode, unsigned mod,
/* Do the "null decode" using a one-byte decode array of '\0' */
/* Copies in plaintext, will be overwritten later */
- partial_decode(0, 0x0102, "", 0, 1, in, size, buf);
+ partial_decode(0, 0x0102, (const unsigned char *)"", 0, 1, in, size, buf);
/*
* The header scrambling is different form the dive
@@ -778,7 +778,7 @@ int try_to_open_cochran(const char *filename, struct memblock *mem)
if (mem->size < 0x40000)
return 0;
- offsets = (int *) mem->buffer;
+ offsets = (unsigned int *) mem->buffer;
dive1 = offsets[0];
dive2 = offsets[1];