summaryrefslogtreecommitdiffstats
path: root/src/dfxml.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-26 09:21:30 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-26 09:21:30 +0200
commit8ab840414394e1e8454413485c578d75fd8ab68f (patch)
tree4d7cb333d48e5cd71bdcde328db0bff816d8f988 /src/dfxml.c
parent7ff26a5fcd838b0ac9d6a3a4e82f802d0b752d81 (diff)
Constify some variables
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)
{