summaryrefslogtreecommitdiffstats
path: root/main/glib/strcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/glib/strcmp.c')
-rw-r--r--main/glib/strcmp.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/main/glib/strcmp.c b/main/glib/strcmp.c
index 9daf624..1079c84 100644
--- a/main/glib/strcmp.c
+++ b/main/glib/strcmp.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.
@@ -44,8 +44,9 @@ __FBSDID("$FreeBSD$");
int
strcmp(const char *s1, const char *s2)
{
- while (*s1 == *s2++)
- if (*s1++ == '\0')
- return (0);
- return (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
+ while(*s1 == *s2++)
+ if(*s1++ == '\0') {
+ return (0);
+ }
+ return (*(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1));
}