summaryrefslogtreecommitdiffstats
path: root/main/glib/strchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/glib/strchr.c')
-rw-r--r--main/glib/strchr.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/main/glib/strchr.c b/main/glib/strchr.c
index ab83b39..f0003d2 100644
--- a/main/glib/strchr.c
+++ b/main/glib/strchr.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.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -39,16 +39,18 @@ __FBSDID("$FreeBSD$");
char *
strchr(const char *p, int ch)
{
- char c;
+ char c;
- c = ch;
- for (;; ++p) {
- if (*p == c)
- return ((char *)p);
- if (*p == '\0')
- return (NULL);
- }
- /* NOTREACHED */
+ c = ch;
+ for(;; ++p) {
+ if(*p == c) {
+ return ((char *)p);
+ }
+ if(*p == '\0') {
+ return (NULL);
+ }
+ }
+ /* NOTREACHED */
}
__weak_reference(strchr, index);