diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:32 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:32 -0700 |
commit | c9025d60139ae23a208baa85a8739654ac02fe56 (patch) | |
tree | 37e458d434b89848b976af4502c447d308ac387e /dos | |
parent | b65b18a241c6e22bbbd53b94939549cd5b0a6c5f (diff) | |
download | syslinux.git-c9025d60139ae23a208baa85a8739654ac02fe56.tar.gz syslinux.git-c9025d60139ae23a208baa85a8739654ac02fe56.tar.xz syslinux.git-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.c | 22 |
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; } |