summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2020-08-24 19:44:09 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2020-08-24 19:44:09 +0200
commit4610b9d40e76a92238d95d94a29ea808fd992f63 (patch)
tree8ac4b15b933fc39f3b43ca047a501c98daa81c4f
parent73d49dbde93650c3ce08974c83142de0b87e229c (diff)
Fix 73d49dbde93650c3ce08974c83142de0b87e229c
-rw-r--r--src/dfxml.c2
-rw-r--r--src/dir.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dfxml.c b/src/dfxml.c
index 93b8db1..4f02702 100644
--- a/src/dfxml.c
+++ b/src/dfxml.c
@@ -251,7 +251,7 @@ void xml_add_DFXML_creator(const char *package, const char *version)
char outstr[200];
const time_t t = time(NULL);
#if defined(__MINGW32__) || defined(__FRAMAC__)
- const struct tm *tmptr = localtime(&t);
+ const struct tm *tmp = localtime(&t);
#else
struct tm tm_tmp;
const struct tm *tmp = localtime_r(&t,&tm_tmp);
diff --git a/src/dir.c b/src/dir.c
index 06bd544..7501627 100644
--- a/src/dir.c
+++ b/src/dir.c
@@ -168,7 +168,7 @@ int set_datestr(char *datestr, size_t n, const time_t timev)
strncpy(datestr, " ", n);
return 0;
}
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) || defined(__FRAMAC__)
tm_p=localtime(&timev);
#else
tm_p=localtime_r(&timev, &tmp);