Use bb_xopen

This commit is contained in:
Glenn L McGrath
2003-12-20 06:00:08 +00:00
parent 236e93d133
commit 02e0355504
4 changed files with 6 additions and 19 deletions

View File

@@ -46,9 +46,7 @@ extern int loadfont_main(int argc, char **argv)
if (argc != 1)
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);
loadnewfont(fd);
return EXIT_SUCCESS;