aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2015-04-04 01:04:08 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-04-04 10:33:11 -0700
commited6ae14a9f6f608cb8ca72e8982806ea03c43571 (patch)
tree037d2003e14f2bc932eda042fc0e3f2ed984c151
parent094d0d96997a89601a82c98bb084089355e59446 (diff)
downloadsubsurface-ed6ae14a9f6f608cb8ca72e8982806ea03c43571.tar.gz
Move extern declaration to header file
Move extern declaration of function datatrak_import() to file.h, where it fits better than in file.c Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--file.c2
-rw-r--r--file.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/file.c b/file.c
index 03eb41c8d..5be16a2a0 100644
--- a/file.c
+++ b/file.c
@@ -22,8 +22,6 @@
#define O_BINARY 0
#endif
-extern void datatrak_import(const char *file, struct dive_table *table);
-
int readfile(const char *filename, struct memblock *mem)
{
int ret, fd;
diff --git a/file.h b/file.h
index d4c52fdb7..b1fb6941d 100644
--- a/file.h
+++ b/file.h
@@ -8,6 +8,7 @@ struct memblock {
extern int try_to_open_cochran(const char *filename, struct memblock *mem);
extern int try_to_open_liquivision(const char *filename, struct memblock *mem);
+extern void datatrak_import(const char *file, struct dive_table *table);
#ifdef __cplusplus
extern "C" {