summaryrefslogtreecommitdiffstats
path: root/main/glib/memcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/glib/memcmp.c')
-rw-r--r--main/glib/memcmp.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/main/glib/memcmp.c b/main/glib/memcmp.c
index baef47e..91bf4bc 100644
--- a/main/glib/memcmp.c
+++ b/main/glib/memcmp.c
@@ -1,6 +1,6 @@
/*-
* Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
+ * The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chris Torek.
@@ -45,13 +45,14 @@ __FBSDID("$FreeBSD$");
int
memcmp(const void *s1, const void *s2, size_t n)
{
- if (n != 0) {
- const unsigned char *p1 = s1, *p2 = s2;
+ if(n != 0) {
+ const unsigned char *p1 = s1, *p2 = s2;
- do {
- if (*p1++ != *p2++)
- return (*--p1 - *--p2);
- } while (--n != 0);
- }
- return (0);
+ do {
+ if(*p1++ != *p2++) {
+ return (*--p1 - *--p2);
+ }
+ } while(--n != 0);
+ }
+ return (0);
}