From 68035f3fa690362a1bbaf5741b56c0bbd9a2e289 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:27 -0700 Subject: [PATCH] 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 --- com32/lib/syslinux/pxe_get_cached.c | 54 ++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/com32/lib/syslinux/pxe_get_cached.c b/com32/lib/syslinux/pxe_get_cached.c index 82c72a9..2e8349f 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; } -- 2.7.4