]> git.wh0rd.org - dump.git/blobdiff - dump/optr.c
64bit and glibc 2.2.2 fixes.
[dump.git] / dump / optr.c
index 0ac0acee6db937e42fc64d112acb68d9786a4727..f0be80bc263c59ae0f3c779049e6226b897052ed 100644 (file)
 
 #ifndef lint
 static const char rcsid[] =
-       "$Id: optr.c,v 1.17 2000/12/05 16:31:36 stelian Exp $";
+       "$Id: optr.c,v 1.20 2001/02/22 10:57:40 stelian Exp $";
 #endif /* not lint */
 
+#include <config.h>
 #include <sys/param.h>
 #include <sys/wait.h>
 #include <sys/time.h>
@@ -64,6 +65,7 @@ static const char rcsid[] =
 #include <ext2fs/ext2fs.h>
 #include <bsdcompat.h>
 #include <signal.h>
+#include <time.h>
 #endif
 
 #include "dump.h"
@@ -566,7 +568,7 @@ static void
 print_wmsg(char arg, int dumpme, const char *dev, int level,
           const char *mtpt, time_t ddate)
 {
-       char *date;
+       char *date = NULL;
        
        if (ddate) {
                char *d;