X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrpbrk.c;h=05e6c511f92262e2b69beb1cfad05bc689f1a60a;hb=2cd4d6d9023e923d6e5da19e8ced3e03290efa78;hp=9152440b1e9d3826915898315523283cda9c5dfa;hpb=267a39bafd249d7eb9c37df06dc6defcf41cb343;p=gnulib.git diff --git a/lib/strpbrk.c b/lib/strpbrk.c index 9152440b1..05e6c511f 100644 --- a/lib/strpbrk.c +++ b/lib/strpbrk.c @@ -1,4 +1,6 @@ -/* Copyright (C) 1991, 1994, 2000, 2002-2003 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006, 2009-2011 Free Software + Foundation, Inc. + NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@prep.ai.mit.edu. @@ -16,9 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include #include #include @@ -33,8 +33,8 @@ strpbrk (const char *s, const char *accept) { const char *a = accept; while (*a != '\0') - if (*a++ == *s) - return (char *) s; + if (*a++ == *s) + return (char *) s; ++s; }