]> sjero.net Git - wget/blobdiff - src/main.c
[svn] Avoid code repetition between time_str and datetime_str.
[wget] / src / main.c
index 75b35fea2fd1d224a835dd713abda07f1f565864..bf9eef772fb44958b90a8ead6428399eee41c386 100644 (file)
@@ -41,6 +41,7 @@ so, delete this exception statement from your version.  */
 #endif
 #include <assert.h>
 #include <errno.h>
+#include <time.h>
 
 #include "wget.h"
 #include "utils.h"
@@ -1017,7 +1018,7 @@ Can't timestamp and not clobber old files at the same time.\n"));
     {
       logprintf (LOG_NOTQUIET,
                  _("FINISHED --%s--\nDownloaded: %d files, %s in %s (%s)\n"),
-                 time_str (NULL),
+                 time_str (time (NULL)),
                  opt.numurls,
                  human_readable (total_downloaded_bytes),
                  secs_to_human_time (total_download_time),