diff options
Diffstat (limited to 'dutmp.c')
-rw-r--r-- | dutmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -21,6 +21,8 @@ | |||
21 | #define bb_need_io_error | 21 | #define bb_need_io_error |
22 | #include "messages.c" | 22 | #include "messages.c" |
23 | #include <utmp.h> | 23 | #include <utmp.h> |
24 | #include <stdlib.h> | ||
25 | #include <unistd.h> | ||
24 | 26 | ||
25 | extern int dutmp_main(int argc, char **argv) | 27 | extern int dutmp_main(int argc, char **argv) |
26 | { | 28 | { |
@@ -35,7 +37,7 @@ extern int dutmp_main(int argc, char **argv) | |||
35 | } else { | 37 | } else { |
36 | file = open(argv[1], O_RDONLY); | 38 | file = open(argv[1], O_RDONLY); |
37 | if (file < 0) { | 39 | if (file < 0) { |
38 | error_msg_and_die(io_error, argv[1], strerror(errno)); | 40 | perror_msg_and_die(io_error, argv[1]); |
39 | } | 41 | } |
40 | } | 42 | } |
41 | 43 | ||