aboutsummaryrefslogtreecommitdiffstats
path: root/e2fsck/ehandler.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsck/ehandler.c')
-rw-r--r--e2fsck/ehandler.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/e2fsck/ehandler.c b/e2fsck/ehandler.c
index 4873a95e..131a0abb 100644
--- a/e2fsck/ehandler.c
+++ b/e2fsck/ehandler.c
@@ -11,10 +11,12 @@
#include <string.h>
#include <ctype.h>
#include <termios.h>
-#include <sys/resource.h>
#include "e2fsck.h"
+#include <sys/time.h>
+#include <sys/resource.h>
+
static const char *operation;
static errcode_t e2fsck_handle_read_error(io_channel channel,
@@ -49,7 +51,7 @@ static errcode_t e2fsck_handle_read_error(io_channel channel,
else
printf("Error reading block %lu (%s). ", block,
error_message(error));
- preenhalt();
+ preenhalt(NULL);
if (ask("Ignore error", 1))
return 0;
@@ -89,7 +91,7 @@ static errcode_t e2fsck_handle_write_error(io_channel channel,
else
printf("Error writing block %lu (%s). ", block,
error_message(error));
- preenhalt();
+ preenhalt(NULL);
if (ask("Ignore error", 1))
return 0;