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>
This commit is contained in:
Salvador Cuñat 2015-04-04 01:04:08 +02:00 committed by Dirk Hohndel
parent 094d0d9699
commit ed6ae14a9f
2 changed files with 1 additions and 2 deletions

2
file.c
View file

@ -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;

1
file.h
View file

@ -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" {