aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-03-13 20:37:38 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-03-13 20:37:38 -0700
commitbd9f8ad7f84208f087e3209c35a5263f45879ce9 (patch)
tree48b42b2655b4bc88f95dfccb70a73eaefd77f89c /file.c
parent3e1098bd038a8568fd3a216b59b753dac59f45fa (diff)
downloadsubsurface-bd9f8ad7f84208f087e3209c35a5263f45879ce9.tar.gz
First simplistic implementation of a divelogs.de upload
This has no user interface and hardcodes a testing username / password. But it can successfully create a DLD file (thanks to Miika and Lubomir) and then uses libsoup to upload that to the server. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index eef779e94..b5fba301a 100644
--- a/file.c
+++ b/file.c
@@ -14,7 +14,7 @@
#define O_BINARY 0
#endif
-static int readfile(const char *filename, struct memblock *mem)
+int readfile(const char *filename, struct memblock *mem)
{
int ret, fd;
struct stat st;