aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}