aboutsummaryrefslogtreecommitdiffstats
path: root/dos
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:32 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:32 -0700
commitc9025d60139ae23a208baa85a8739654ac02fe56 (patch)
tree37e458d434b89848b976af4502c447d308ac387e /dos
parentb65b18a241c6e22bbbd53b94939549cd5b0a6c5f (diff)
downloadsyslinux-devel-c9025d60139ae23a208baa85a8739654ac02fe56.tar.gz
syslinux-devel-c9025d60139ae23a208baa85a8739654ac02fe56.tar.xz
syslinux-devel-c9025d60139ae23a208baa85a8739654ac02fe56.zip
Run Nindent on dos/conio.c
Automatically reformat dos/conio.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 'dos')
-rw-r--r--dos/conio.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/dos/conio.c b/dos/conio.c
index bf54805a..1400e42c 100644
--- a/dos/conio.c
+++ b/dos/conio.c
@@ -21,22 +21,22 @@
int putchar(int ch)
{
- if ( ch == '\n' )
- putchar('\r');
- asm("movb $0x02,%%ah ; int $0x21" : : "d" (ch));
- return ch;
+ if (ch == '\n')
+ putchar('\r');
+asm("movb $0x02,%%ah ; int $0x21": :"d"(ch));
+ return ch;
}
/* Note: doesn't put '\n' like the stdc version does */
int puts(const char *s)
{
- int count = 0;
+ int count = 0;
- while ( *s ) {
- putchar(*s);
- count++;
- s++;
- }
+ while (*s) {
+ putchar(*s);
+ count++;
+ s++;
+ }
- return count;
+ return count;
}