aboutsummaryrefslogtreecommitdiffstats
path: root/com32/samples
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:31 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:31 -0700
commitd80d9c74bfe44b5cc864529b7100d25083a9d4b3 (patch)
tree52799d9d21aa4ce90711a1a52aa9e1f1fe4f1b37 /com32/samples
parent28e2781568934b9fe4ebab76d8ebc31f77c0f337 (diff)
downloadsyslinux-d80d9c74bfe44b5cc864529b7100d25083a9d4b3.tar.gz
syslinux-d80d9c74bfe44b5cc864529b7100d25083a9d4b3.tar.xz
syslinux-d80d9c74bfe44b5cc864529b7100d25083a9d4b3.zip
Run Nindent on com32/samples/advdump.c
Automatically reformat com32/samples/advdump.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/samples')
-rw-r--r--com32/samples/advdump.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/com32/samples/advdump.c b/com32/samples/advdump.c
index 2e2ef391..2c786416 100644
--- a/com32/samples/advdump.c
+++ b/com32/samples/advdump.c
@@ -23,31 +23,31 @@
int main(void)
{
- uint8_t *p, *ep;
- size_t s = syslinux_adv_size();
- char buf[256];
+ uint8_t *p, *ep;
+ size_t s = syslinux_adv_size();
+ char buf[256];
- openconsole(&dev_stdcon_r, &dev_stdcon_w);
+ openconsole(&dev_stdcon_r, &dev_stdcon_w);
- p = syslinux_adv_ptr();
+ p = syslinux_adv_ptr();
- printf("ADV size: %zd bytes at %p\n", s, p);
+ printf("ADV size: %zd bytes at %p\n", s, p);
- ep = p+s; /* Need at least opcode+len */
- while (p < ep-1 && *p) {
- int t = *p++;
- int l = *p++;
+ ep = p + s; /* Need at least opcode+len */
+ while (p < ep - 1 && *p) {
+ int t = *p++;
+ int l = *p++;
- if (p+l > ep)
- break;
+ if (p + l > ep)
+ break;
- memcpy(buf, p, l);
- buf[l] = '\0';
+ memcpy(buf, p, l);
+ buf[l] = '\0';
- printf("ADV %3d: \"%s\"\n", t, buf);
+ printf("ADV %3d: \"%s\"\n", t, buf);
- p += l;
- }
+ p += l;
+ }
- return 0;
+ return 0;
}