Merge "Nullability check for mount module." am: 7b90c81b7c
am: 63fa646854
Original change: https://android-review.googlesource.com/c/platform/bionic/+/2539232 Change-Id: I2df8c9584fc6f59142057a85f728599dbda67e35 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
7906657b83
1 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ __BEGIN_DECLS
|
|||
*
|
||||
* Returns 0 on success, and returns -1 and sets `errno` on failure.
|
||||
*/
|
||||
int mount(const char* __source, const char* __target, const char* __fs_type, unsigned long __flags, const void* __data);
|
||||
int mount(const char* __BIONIC_COMPLICATED_NULLNESS __source, const char* _Nonnull __target, const char* __BIONIC_COMPLICATED_NULLNESS __fs_type, unsigned long __flags, const void* _Nullable __data);
|
||||
|
||||
/**
|
||||
* [umount(2)](http://man7.org/linux/man-pages/man2/umount.2.html) unmounts the filesystem at
|
||||
|
@ -63,7 +63,7 @@ int mount(const char* __source, const char* __target, const char* __fs_type, uns
|
|||
*
|
||||
* Returns 0 on success, and returns -1 and sets `errno` on failure.
|
||||
*/
|
||||
int umount(const char* __target);
|
||||
int umount(const char* _Nonnull __target);
|
||||
|
||||
/**
|
||||
* [umount2(2)](http://man7.org/linux/man-pages/man2/umount2.2.html) unmounts the filesystem at
|
||||
|
@ -71,6 +71,6 @@ int umount(const char* __target);
|
|||
*
|
||||
* Returns 0 on success, and returns -1 and sets `errno` on failure.
|
||||
*/
|
||||
int umount2(const char* __target, int __flags);
|
||||
int umount2(const char* _Nonnull __target, int __flags);
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Reference in a new issue