Whamcloud - gitweb
blkid: include time.h to provide explicit declaration for time()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 11 Apr 2021 23:52:57 +0000 (19:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 11 Apr 2021 23:52:57 +0000 (19:52 -0400)
This was originally reported to the MacPorts of e2fsprogs at:

https://github.com/macports/macports-ports/pull/9137

Reported-by: Ryan Schmidt <ryandesign@macports.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/problem.c
lib/blkid/probe.c

index eb2824f..757b5d5 100644 (file)
@@ -379,7 +379,7 @@ static struct e2fsck_problem problem_table[] = {
        /* group descriptor N checksum is invalid, should be yyyy. */
        { PR_0_GDT_CSUM,
          N_("@g descriptor %g checksum is %04x, should be %04y.  "),
-            PROMPT_FIX, PR_LATCH_BG_CHECKSUM, 0, 0, 0 },
+            PROMPT_FIX, PR_PREEN_OK | PR_LATCH_BG_CHECKSUM, 0, 0, 0 },
 
        /* group descriptor N marked uninitialized without feature set. */
        { PR_0_GDT_UNINIT,
index f8687cd..b8b6558 100644 (file)
@@ -17,6 +17,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#include <time.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <ctype.h>