summaryrefslogtreecommitdiff
path: root/com32/libutil
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:27 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:27 -0700
commitdf747e62a44f675d3be5cd07a04db188e6cc8818 (patch)
tree3d5cb71213a6b274d0979260356315813c124182 /com32/libutil
parentbd90b6304bd9da6025587fd51bda4532271b3e0e (diff)
downloadsyslinux-df747e62a44f675d3be5cd07a04db188e6cc8818.tar.gz
Run Nindent on com32/libutil/ansiline.c
Automatically reformat com32/libutil/ansiline.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/libutil')
-rw-r--r--com32/libutil/ansiline.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/com32/libutil/ansiline.c b/com32/libutil/ansiline.c
index fffb2baa..18c71492 100644
--- a/com32/libutil/ansiline.c
+++ b/com32/libutil/ansiline.c
@@ -40,7 +40,7 @@
void console_ansi_std(void)
{
- openconsole(&dev_stdcon_r, &dev_ansiserial_w);
+ openconsole(&dev_stdcon_r, &dev_ansiserial_w);
}
#else
@@ -50,35 +50,34 @@ void console_ansi_std(void)
static struct termios original_termios_settings;
-static void __attribute__((constructor)) console_init(void)
+static void __attribute__ ((constructor)) console_init(void)
{
- tcgetattr(0, &original_termios_settings);
+ tcgetattr(0, &original_termios_settings);
}
-static void __attribute__((destructor)) console_cleanup(void)
+static void __attribute__ ((destructor)) console_cleanup(void)
{
- tcsetattr(0, TCSANOW, &original_termios_settings);
+ tcsetattr(0, TCSANOW, &original_termios_settings);
}
-
void console_ansi_std(void)
{
- struct termios tio;
+ struct termios tio;
- /* Disable stdio buffering */
- setbuf(stdin, NULL);
- setbuf(stdout, NULL);
- setbuf(stderr, NULL);
+ /* Disable stdio buffering */
+ setbuf(stdin, NULL);
+ setbuf(stdout, NULL);
+ setbuf(stderr, NULL);
- /* Set the termios flag so we behave the same as libcom32 */
- tcgetattr(0, &tio);
- tio.c_iflag &= ~ICRNL;
- tio.c_iflag |= IGNCR;
- tio.c_lflag |= ICANON|ECHO;
- if (!tio.c_oflag & OPOST)
- tio.c_oflag = 0;
- tio.c_oflag |= OPOST|ONLCR;
- tcsetattr(0, TCSANOW, &tio);
+ /* Set the termios flag so we behave the same as libcom32 */
+ tcgetattr(0, &tio);
+ tio.c_iflag &= ~ICRNL;
+ tio.c_iflag |= IGNCR;
+ tio.c_lflag |= ICANON | ECHO;
+ if (!tio.c_oflag & OPOST)
+ tio.c_oflag = 0;
+ tio.c_oflag |= OPOST | ONLCR;
+ tcsetattr(0, TCSANOW, &tio);
}
#endif