diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-09-01 21:07:54 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-09-01 21:07:54 +0200 |
commit | ac044784a6ce64ff15610d4b70750065a7f01b80 (patch) | |
tree | 8ac8629c0089099f21be9107a5d3779963d33ca0 /src/wchar/wcsspn.c | |
parent | add memfrob (diff) | |
download | slibc-ac044784a6ce64ff15610d4b70750065a7f01b80.tar.gz slibc-ac044784a6ce64ff15610d4b70750065a7f01b80.tar.bz2 slibc-ac044784a6ce64ff15610d4b70750065a7f01b80.tar.xz |
start on makefile and fixing warnings and errors
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/wchar/wcsspn.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wchar/wcsspn.c b/src/wchar/wcsspn.c index 360ab5f..d0ce908 100644 --- a/src/wchar/wcsspn.c +++ b/src/wchar/wcsspn.c @@ -16,7 +16,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include <wchar.h> -#include <stddef.h> + + +# pragma GCC diagnostic ignored "-Wdiscarded-qualifiers" @@ -54,7 +56,7 @@ size_t wcscspn(const wchar_t* string, const wchar_t* stopset) size_t end = wcslen(string); wchar_t* p; wchar_t c; - while ((c = *skipset++)) + while ((c = *stopset++)) if (p = wcsnchr(string, c, end), p != NULL) end = (size_t)(p - string); return end; |