diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; } |