projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
alloca: port to compilers that can optimize like GCC 4.6.0
[gnulib.git]
/
lib
/
strpbrk.c
diff --git
a/lib/strpbrk.c
b/lib/strpbrk.c
index
7843a6d
..
05e6c51
100644
(file)
--- a/
lib/strpbrk.c
+++ b/
lib/strpbrk.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006 Free Software
+/* 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.
Foundation, Inc.
NOTE: The canonical source of this file is maintained with the GNU C Library.
@@
-33,8
+33,8
@@
strpbrk (const char *s, const char *accept)
{
const char *a = accept;
while (*a != '\0')
{
const char *a = accept;
while (*a != '\0')
- if (*a++ == *s)
- return (char *) s;
+
if (*a++ == *s)
+
return (char *) s;
++s;
}
++s;
}