Nullability check for if module.

Bugs: b/245972273
Test: adb shell
Change-Id: If6be7027e0ebdcf68ae4062c57e1c4e82a767abe
This commit is contained in:
zijunzhao 2023-05-09 23:53:57 +00:00 committed by Zijun Zhao
parent 983292a972
commit 87aae5309b

View file

@ -41,13 +41,13 @@ __BEGIN_DECLS
struct if_nameindex {
unsigned if_index;
char* if_name;
char* _Nullable if_name;
};
char* if_indextoname(unsigned __index, char* __buf);
unsigned if_nametoindex(const char* __name);
struct if_nameindex* if_nameindex(void) __INTRODUCED_IN(24);
void if_freenameindex(struct if_nameindex* __ptr) __INTRODUCED_IN(24);
char* _Nullable if_indextoname(unsigned __index, char* _Nonnull __buf);
unsigned if_nametoindex(const char* _Nonnull __name);
struct if_nameindex* _Nullable if_nameindex(void) __INTRODUCED_IN(24);
void if_freenameindex(struct if_nameindex* _Nullable __ptr) __INTRODUCED_IN(24);
__END_DECLS