aboutsummaryrefslogtreecommitdiffstats
path: root/memdump
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:36 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:36 -0700
commit63e80b0f9d34fc4bb9fe4cdd6d6ed150c4c7a60e (patch)
tree472c57b713b832c1b8ccef0432a4b93201385c38 /memdump
parentee99a386d95c36b8bed14d001441c059f9094262 (diff)
downloadsyslinux.git-63e80b0f9d34fc4bb9fe4cdd6d6ed150c4c7a60e.tar.gz
syslinux.git-63e80b0f9d34fc4bb9fe4cdd6d6ed150c4c7a60e.tar.xz
syslinux.git-63e80b0f9d34fc4bb9fe4cdd6d6ed150c4c7a60e.zip
Run Nindent on memdump/conio.c
Automatically reformat memdump/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 'memdump')
-rw-r--r--memdump/conio.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/memdump/conio.c b/memdump/conio.c
index bf54805a..1400e42c 100644
--- a/memdump/conio.c
+++ b/memdump/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;
}