diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:36 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:36 -0700 |
commit | eb2ebd88dda80d118bc056f2d73ee1d01b56fd40 (patch) | |
tree | fe06cd929fe6c757449deadc03d2b0c3befe5137 /sample | |
parent | 5f7336afa299a9f69b66eb37520323a91d2a62bb (diff) | |
download | syslinux-eb2ebd88dda80d118bc056f2d73ee1d01b56fd40.tar.gz |
Run Nindent on sample/c32echo.c
Automatically reformat sample/c32echo.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 'sample')
-rw-r--r-- | sample/c32echo.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/sample/c32echo.c b/sample/c32echo.c index 08c25a23..cfde885d 100644 --- a/sample/c32echo.c +++ b/sample/c32echo.c @@ -22,27 +22,26 @@ static inline void memset(void *buf, int ch, unsigned int len) { - asm volatile("cld; rep; stosb" - : "+D" (buf), "+c" (len) : "a" (ch) : "memory"); + asm volatile ("cld; rep; stosb":"+D" (buf), "+c"(len):"a"(ch):"memory"); } int __start(void) { - com32sys_t inreg; - const char *p; + com32sys_t inreg; + const char *p; - memset(&inreg, 0, sizeof inreg); - inreg.eax.b[1] = 0x02; /* Write Character */ + memset(&inreg, 0, sizeof inreg); + inreg.eax.b[1] = 0x02; /* Write Character */ - for ( p = __com32.cs_cmdline ; *p ; p++ ) { - inreg.edx.b[0] = *p; - __com32.cs_intcall(0x21, &inreg, NULL); - } + for (p = __com32.cs_cmdline; *p; p++) { + inreg.edx.b[0] = *p; + __com32.cs_intcall(0x21, &inreg, NULL); + } - inreg.edx.b[0] = '\r'; - __com32.cs_intcall(0x21, &inreg, NULL); - inreg.edx.b[0] = '\n'; - __com32.cs_intcall(0x21, &inreg, NULL); + inreg.edx.b[0] = '\r'; + __com32.cs_intcall(0x21, &inreg, NULL); + inreg.edx.b[0] = '\n'; + __com32.cs_intcall(0x21, &inreg, NULL); - return 0; + return 0; } |