summaryrefslogtreecommitdiffstats
path: root/src/dfxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dfxml.c')
-rw-r--r--src/dfxml.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dfxml.c b/src/dfxml.c
index d6ee137..f04e6cd 100644
--- a/src/dfxml.c
+++ b/src/dfxml.c
@@ -237,10 +237,8 @@ void xml_add_DFXML_creator(const char *package, const char *version)
#endif
{
char outstr[200];
- time_t t;
- struct tm *tmp;
- t = time(NULL);
- tmp = localtime(&t);
+ const time_t t = time(NULL);
+ const struct tm *tmp = localtime(&t);
if (tmp != NULL &&
strftime(outstr, sizeof(outstr), "%Y-%m-%dT%H:%M:%S%z", tmp) != 0)
{