aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/file.c b/file.c
index 2e46f94fd..aff1d51f2 100644
--- a/file.c
+++ b/file.c
@@ -6,11 +6,7 @@
#include <errno.h>
#include "dive.h"
-
-struct memblock {
- void *buffer;
- size_t size;
-};
+#include "file.h"
static int readfile(const char *filename, struct memblock *mem)
{
@@ -104,6 +100,10 @@ static int open_by_filename(const char *filename, const char *fmt, struct memblo
if (!strcasecmp(fmt, "SDE"))
return try_to_open_suunto(filename, mem, error);
+ /* Truly nasty intentionally obfuscated Cochran Anal software */
+ if (!strcasecmp(fmt, "CAN"))
+ return try_to_open_cochran(filename, mem, error);
+
return 0;
}