From 63e80b0f9d34fc4bb9fe4cdd6d6ed150c4c7a60e Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:36 -0700 Subject: [PATCH] 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 --- memdump/conio.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/memdump/conio.c b/memdump/conio.c index bf54805..1400e42 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; } -- 2.7.4