summaryrefslogtreecommitdiffstats
path: root/main/glib/strpbrk.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/glib/strpbrk.c')
-rw-r--r--main/glib/strpbrk.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/main/glib/strpbrk.c b/main/glib/strpbrk.c
index 513f9ce..d1518d7 100644
--- a/main/glib/strpbrk.c
+++ b/main/glib/strpbrk.c
@@ -1,6 +1,6 @@
/*
* Copyright (c) 1985, 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
@@ -42,13 +42,14 @@ __FBSDID("$FreeBSD$");
char *
strpbrk(const char *s1, const char *s2)
{
- const char *scanp;
- int c, sc;
+ const char *scanp;
+ int c, sc;
- while ((c = *s1++) != 0) {
- for (scanp = s2; (sc = *scanp++) != '\0';)
- if (sc == c)
- return ((char *)(s1 - 1));
- }
- return (NULL);
+ while((c = *s1++) != 0) {
+ for(scanp = s2; (sc = *scanp++) != '\0';)
+ if(sc == c) {
+ return ((char *)(s1 - 1));
+ }
+ }
+ return (NULL);
}