aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs
diff options
context:
space:
mode:
authorDaniel Marjamäki <Daniel.Marjamaki@evidente.se>2015-05-22 08:00:26 +0000
committerMike Frysinger <vapier@gentoo.org>2015-08-05 04:43:42 -0400
commitaeb47bbc06cae80bbcc69452eb65118b5fe656b9 (patch)
tree73bcc01ce1fe45a2a61692b7a95d1b38f5ba1e7d /wcsmbs
parent496405af79252a2eb7a5ebdc3e29ba452869d047 (diff)
downloadglibc-aeb47bbc06cae80bbcc69452eb65118b5fe656b9.zip
glibc-aeb47bbc06cae80bbcc69452eb65118b5fe656b9.tar.gz
glibc-aeb47bbc06cae80bbcc69452eb65118b5fe656b9.tar.bz2
Updated __nonnull annotations for wcscat, wcsncat, wcscmp and wcsncmp [BZ #18265]
This patch adds __nonnull annotations for wcscat, wcsncat, wcscmp and wcsncmp. These added annotations match the annoations for strcat, strncat, strcmp, strncmp in glibc.
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/wchar.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h
index 0d68cda..10c1b5f 100644
--- a/wcsmbs/wchar.h
+++ b/wcsmbs/wchar.h
@@ -155,18 +155,19 @@ extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
/* Append SRC onto DEST. */
extern wchar_t *wcscat (wchar_t *__restrict __dest,
- const wchar_t *__restrict __src) __THROW;
+ const wchar_t *__restrict __src)
+ __THROW __nonnull ((1, 2));
/* Append no more than N wide-characters of SRC onto DEST. */
extern wchar_t *wcsncat (wchar_t *__restrict __dest,
const wchar_t *__restrict __src, size_t __n)
- __THROW;
+ __THROW __nonnull ((1, 2));
/* Compare S1 and S2. */
extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2)
- __THROW __attribute_pure__;
+ __THROW __attribute_pure__ __nonnull ((1, 2));
/* Compare N wide-characters of S1 and S2. */
extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
- __THROW __attribute_pure__;
+ __THROW __attribute_pure__ __nonnull ((1, 2));
__END_NAMESPACE_STD
#ifdef __USE_XOPEN2K8