diff options
Diffstat (limited to 'loadacm.c')
-rw-r--r-- | loadacm.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -39,13 +39,11 @@ int loadacm_main(int argc, char **argv) | |||
39 | 39 | ||
40 | fd = open("/dev/tty", O_RDWR); | 40 | fd = open("/dev/tty", O_RDWR); |
41 | if (fd < 0) { | 41 | if (fd < 0) { |
42 | error_msg("Error opening /dev/tty1: %s\n", strerror(errno)); | 42 | perror_msg_and_die("Error opening /dev/tty1"); |
43 | return EXIT_FAILURE; | ||
44 | } | 43 | } |
45 | 44 | ||
46 | if (screen_map_load(fd, stdin)) { | 45 | if (screen_map_load(fd, stdin)) { |
47 | error_msg("Error loading acm: %s\n", strerror(errno)); | 46 | perror_msg_and_die("Error loading acm"); |
48 | return EXIT_FAILURE; | ||
49 | } | 47 | } |
50 | 48 | ||
51 | write(fd, "\033(K", 3); | 49 | write(fd, "\033(K", 3); |