From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:36 +0000 (-0700) Subject: Run Nindent on memdump/conio.c X-Git-Tag: syslinux-3.83-pre2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63e80b0f9d34fc4bb9fe4cdd6d6ed150c4c7a60e;p=profile%2Fivi%2Fsyslinux.git 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 --- 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; }