From 98401e171e9bbb7b41834bf0ab36a4e07e5602e8 Mon Sep 17 00:00:00 2001 From: Tyler Wear Date: Tue, 15 Nov 2022 13:44:04 -0800 Subject: [PATCH] Return for getBlockedPorts NonNull Set annotation for _getPortsBlockedForBind to NonNull. Change-Id: If91459494601ee157c5032c6cce9b9baf4812f87 --- service/libconnectivity/include/connectivity_native.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/libconnectivity/include/connectivity_native.h b/service/libconnectivity/include/connectivity_native.h index 5a2509af4c..f4676a9943 100644 --- a/service/libconnectivity/include/connectivity_native.h +++ b/service/libconnectivity/include/connectivity_native.h @@ -78,7 +78,7 @@ int AConnectivityNative_unblockAllPortsForBind() __INTRODUCED_IN(__ANDROID_API_U * @param count Pointer to the size of the ports array; the value will be set to the total number of * blocked ports, which may be larger than the ports array that was filled. */ -int AConnectivityNative_getPortsBlockedForBind(in_port_t *ports, size_t *count) +int AConnectivityNative_getPortsBlockedForBind(in_port_t* _Nonnull ports, size_t* _Nonnull count) __INTRODUCED_IN(__ANDROID_API_U__); __END_DECLS