From 1ee9fb500217ff4828d625776c05ff2158da3dd4 Mon Sep 17 00:00:00 2001 From: zijunzhao Date: Wed, 14 Jun 2023 21:52:17 +0000 Subject: [PATCH] Nullability check for wctype module. Bugs: b/245972273 Test: adb shell Change-Id: I0f10db338876eb93a89be35130b097ebe19d2c15 --- libc/include/bits/wctype.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/include/bits/wctype.h b/libc/include/bits/wctype.h index 0015261e9e..3abbf828f4 100644 --- a/libc/include/bits/wctype.h +++ b/libc/include/bits/wctype.h @@ -54,12 +54,12 @@ wint_t towlower(wint_t __wc); wint_t towupper(wint_t __wc); typedef long wctype_t; -wctype_t wctype(const char* __name); +wctype_t wctype(const char* _Nonnull __name); int iswctype(wint_t __wc, wctype_t __type); typedef const void* wctrans_t; -wint_t towctrans(wint_t __wc, wctrans_t __transform) __INTRODUCED_IN_NO_GUARD_FOR_NDK(26); -wctrans_t wctrans(const char* __name) __INTRODUCED_IN_NO_GUARD_FOR_NDK(26); +wint_t towctrans(wint_t __wc, wctrans_t _Nonnull __transform) __INTRODUCED_IN_NO_GUARD_FOR_NDK(26); +wctrans_t _Nullable wctrans(const char* _Nonnull __name) __INTRODUCED_IN_NO_GUARD_FOR_NDK(26); __END_DECLS