diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:20:14 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:20:14 -0700 |
commit | 2e63f522953e48017d55e50aacc8c5e0754e1284 (patch) | |
tree | 09c2cf0d07dda359561e2d6f6b028780cc9c4fe7 /core/hello.c | |
parent | 5e6aef0b866b1e5c1c458cc8ca2a52092928fb0d (diff) | |
download | syslinux-2e63f522953e48017d55e50aacc8c5e0754e1284.tar.gz |
Run Nindent on core/hello.c
Automatically reformat core/hello.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 'core/hello.c')
-rw-r--r-- | core/hello.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/hello.c b/core/hello.c index 6c12c738..ec2f5ffe 100644 --- a/core/hello.c +++ b/core/hello.c @@ -3,25 +3,25 @@ void myputchar(int c) { - static com32sys_t ireg; - static uint16_t *vram = 0xb8000; + static com32sys_t ireg; + static uint16_t *vram = 0xb8000; - ireg.eax.b[1] = 0x02; - ireg.edx.b[0] = c; - core_intcall(0x21, &ireg, NULL); + ireg.eax.b[1] = 0x02; + ireg.edx.b[0] = c; + core_intcall(0x21, &ireg, NULL); - *vram++ = c + 0x1f00; + *vram++ = c + 0x1f00; } void myputs(const char *str) { - while (*str) - myputchar(*str++); + while (*str) + myputchar(*str++); } void hello(void) { - static char hello_str[] = "Hello, World! (hello.c)\r\n"; + static char hello_str[] = "Hello, World! (hello.c)\r\n"; - myputs(hello_str); + myputs(hello_str); } |