Merge "Nullability check for capability module." am: fb63e485f1 am: 0cbffa18c4

Original change: https://android-review.googlesource.com/c/platform/bionic/+/2537351

Change-Id: I8b3c844716f1f83ac6fa6f0cdc3845ab7e1c8f00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-04-14 22:27:59 +00:00 committed by Automerger Merge Worker
commit 0a54daa02b

View file

@ -44,7 +44,7 @@ __BEGIN_DECLS
*
* Returns 0 on success, and returns -1 and sets `errno` on failure.
*/
int capget(cap_user_header_t __hdr_ptr, cap_user_data_t __data_ptr);
int capget(cap_user_header_t _Nonnull __hdr_ptr, cap_user_data_t _Nullable __data_ptr);
/**
* [capset(2)](http://man7.org/linux/man-pages/man2/capset.2.html) sets the calling
@ -52,6 +52,6 @@ int capget(cap_user_header_t __hdr_ptr, cap_user_data_t __data_ptr);
*
* Returns 0 on success, and returns -1 and sets `errno` on failure.
*/
int capset(cap_user_header_t __hdr_ptr, const cap_user_data_t __data_ptr);
int capset(cap_user_header_t _Nonnull __hdr_ptr, const cap_user_data_t _Nullable __data_ptr);
__END_DECLS