diff options
Diffstat (limited to 'fbtruetype/console.c')
-rw-r--r-- | fbtruetype/console.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fbtruetype/console.c b/fbtruetype/console.c index 8bc7991..bc4aeae 100644 --- a/fbtruetype/console.c +++ b/fbtruetype/console.c @@ -26,8 +26,8 @@ int fd; int current_console(void) { - int result=0; - char twelve=12; + int result = 0; + char twelve = 12; result = ioctl(fd, TIOCLINUX, &twelve); @@ -36,10 +36,9 @@ int current_console(void) void init_consoles(void) { - fd=open("/dev/tty0", O_RDWR|O_NDELAY); - if (fd<0) { + fd = open("/dev/tty0", O_RDWR | O_NDELAY); + if (fd < 0) { fprintf(stderr, "Could not open virtual terminal.\n"); - exit (1); + exit(1); } } - |