X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=console-tools%2Floadfont.c;h=d6650019554dd59cfb99d0d7a146cafdec38c2aa;hb=9c60b290717e3ff1b9a8e09da4abe6f46964aa82;hp=ec3e50560777e298233e535200fd5ff54f2d9a00;hpb=dd19c6990496023fe23fefef8f1798740f7d39c6;p=oweals%2Fbusybox.git diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index ec3e50560..d66500195 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c @@ -7,7 +7,6 @@ * Loads the console font, and possibly the corresponding screen map(s). * (Adapted for busybox by Matej Vela.) */ -#include "busybox.h" #include #include #include @@ -20,6 +19,7 @@ #include #include #include +#include "busybox.h" static const int PSF_MAGIC1 = 0x36; static const int PSF_MAGIC2 = 0x04; @@ -44,11 +44,11 @@ extern int loadfont_main(int argc, char **argv) int fd; if (argc != 1) - usage(loadfont_usage); + show_usage(); - fd = open("/dev/tty0", O_RDWR); + fd = open(CURRENT_VC, O_RDWR); if (fd < 0) - perror_msg_and_die("Error opening /dev/tty0"); + perror_msg_and_die("Error opening " CURRENT_VC); loadnewfont(fd); return EXIT_SUCCESS;