diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:27 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:27 -0700 |
commit | 68035f3fa690362a1bbaf5741b56c0bbd9a2e289 (patch) | |
tree | 4a9d9f8eb5e078125a8392722e74cfad2d02a549 /com32/lib/syslinux | |
parent | baaafd3d78ece9cc0c91b4b37a4f54424f397755 (diff) | |
download | syslinux-68035f3fa690362a1bbaf5741b56c0bbd9a2e289.tar.gz |
Run Nindent on com32/lib/syslinux/pxe_get_cached.c
Automatically reformat com32/lib/syslinux/pxe_get_cached.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 'com32/lib/syslinux')
-rw-r--r-- | com32/lib/syslinux/pxe_get_cached.c | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/com32/lib/syslinux/pxe_get_cached.c b/com32/lib/syslinux/pxe_get_cached.c index 82c72a96..2e8349fe 100644 --- a/com32/lib/syslinux/pxe_get_cached.c +++ b/com32/lib/syslinux/pxe_get_cached.c @@ -40,42 +40,42 @@ /* Returns the status code from PXE (0 on success), or -1 on invocation failure */ -int pxe_get_cached_info(int level, void **buf, size_t *len) +int pxe_get_cached_info(int level, void **buf, size_t * len) { - com32sys_t regs; - t_PXENV_GET_CACHED_INFO *gci = __com32.cs_bounce; - void *bbuf, *nbuf; + com32sys_t regs; + t_PXENV_GET_CACHED_INFO *gci = __com32.cs_bounce; + void *bbuf, *nbuf; - memset(®s, 0, sizeof regs); - regs.eax.w[0] = 0x0009; - regs.ebx.w[0] = PXENV_GET_CACHED_INFO; - regs.es = SEG(gci); - regs.edi.w[0] = OFFS(gci); + memset(®s, 0, sizeof regs); + regs.eax.w[0] = 0x0009; + regs.ebx.w[0] = PXENV_GET_CACHED_INFO; + regs.es = SEG(gci); + regs.edi.w[0] = OFFS(gci); - bbuf = &gci[1]; + bbuf = &gci[1]; - gci->Status = PXENV_STATUS_FAILURE; - gci->PacketType = level; - gci->BufferSize = gci->BufferLimit = 65536-sizeof(*gci); - gci->Buffer.seg = SEG(bbuf); - gci->Buffer.offs = OFFS(bbuf); + gci->Status = PXENV_STATUS_FAILURE; + gci->PacketType = level; + gci->BufferSize = gci->BufferLimit = 65536 - sizeof(*gci); + gci->Buffer.seg = SEG(bbuf); + gci->Buffer.offs = OFFS(bbuf); - __intcall(0x22, ®s, ®s); + __intcall(0x22, ®s, ®s); - if (regs.eflags.l & EFLAGS_CF) - return -1; + if (regs.eflags.l & EFLAGS_CF) + return -1; - if (gci->Status) - return gci->Status; + if (gci->Status) + return gci->Status; - nbuf = malloc(gci->BufferSize); /* malloc() does not use the bounce buffer */ - if (!nbuf) - return -1; + nbuf = malloc(gci->BufferSize); /* malloc() does not use the bounce buffer */ + if (!nbuf) + return -1; - memcpy(nbuf, bbuf, gci->BufferSize); + memcpy(nbuf, bbuf, gci->BufferSize); - *buf = nbuf; - *len = gci->BufferSize; + *buf = nbuf; + *len = gci->BufferSize; - return 0; + return 0; } |