summaryrefslogtreecommitdiffstats
path: root/core/save-git.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-01 14:07:59 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-01 09:42:31 -0700
commit9c70261c0e294d46d62d99725a1ae9ddc01eb1cf (patch)
treea1ae27fd5a27700f8b272b0faad8a5d2bc2910b0 /core/save-git.c
parent50b195142b07e58a1c0e3bfe5c725bf5e3dd4020 (diff)
downloadsubsurface-9c70261c0e294d46d62d99725a1ae9ddc01eb1cf.tar.gz
cleanup: move declaration of utc_mk* functions to new subsurface-time.h header
No point in slurping in all of dive.h for translation units that only want to do some time manipulation without ever touching a dive. Don't call the header "time.h", because we don't want to end up in a confusion with the system header of the same name. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/save-git.c')
-rw-r--r--core/save-git.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/save-git.c b/core/save-git.c
index d6c1814b4..01f804006 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -10,7 +10,6 @@
#include <string.h>
#include <stdlib.h>
#include <errno.h>
-#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -30,6 +29,7 @@
#include "qthelper.h"
#include "gettext.h"
#include "tag.h"
+#include "subsurface-time.h"
#define VA_BUF(b, fmt) do { va_list args; va_start(args, fmt); put_vformat(b, fmt, args); va_end(args); } while (0)