diff options
Diffstat (limited to 'console-tools/loadacm.c')
-rw-r--r-- | console-tools/loadacm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c index 640aa44..edaf51a 100644 --- a/console-tools/loadacm.c +++ b/console-tools/loadacm.c @@ -37,10 +37,7 @@ int loadacm_main(int argc, char **argv) bb_show_usage(); } - fd = open(CURRENT_VC, O_RDWR); - if (fd < 0) { - bb_perror_msg_and_die("Error opening " CURRENT_VC); - } + fd = bb_xopen(CURRENT_VC, O_RDWR); if (screen_map_load(fd, stdin)) { bb_perror_msg_and_die("Error loading acm"); |