aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:23 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:23 -0700
commit9fdeba97bcd953e08c3f27c4b96d9f8e8508f6e4 (patch)
tree23342ff3121b11a42673a4b751b44e8bd284e9d7
parent14425e78bccf7a34b476d3fb935b8c83e5001e45 (diff)
downloadsyslinux-9fdeba97bcd953e08c3f27c4b96d9f8e8508f6e4.tar.gz
syslinux-9fdeba97bcd953e08c3f27c4b96d9f8e8508f6e4.tar.xz
syslinux-9fdeba97bcd953e08c3f27c4b96d9f8e8508f6e4.zip
Run Nindent on com32/lib/memcmp.c
Automatically reformat com32/lib/memcmp.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>
-rw-r--r--com32/lib/memcmp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/com32/lib/memcmp.c b/com32/lib/memcmp.c
index f6bc1728..a9e642bf 100644
--- a/com32/lib/memcmp.c
+++ b/com32/lib/memcmp.c
@@ -6,14 +6,14 @@
int memcmp(const void *s1, const void *s2, size_t n)
{
- const unsigned char *c1 = s1, *c2 = s2;
- int d = 0;
+ const unsigned char *c1 = s1, *c2 = s2;
+ int d = 0;
- while ( n-- ) {
- d = (int)*c1++ - (int)*c2++;
- if ( d )
- break;
- }
+ while (n--) {
+ d = (int)*c1++ - (int)*c2++;
+ if (d)
+ break;
+ }
- return d;
+ return d;
}