roken: use correct calling conventions for rk_getifaddrs()

This commit is contained in:
Luke Howard
2023-01-07 20:21:10 +11:00
parent 4e449baa29
commit 69b417e915
2 changed files with 3 additions and 3 deletions

View File

@@ -853,7 +853,7 @@ rk_getifaddrs(struct ifaddrs **ifap)
return 0;
}
void ROKEN_LIB_FUNCTION
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
rk_freeifaddrs(struct ifaddrs *ifp)
{
/* AF_NETLINK method uses a single allocation for all interfaces */

View File

@@ -67,10 +67,10 @@ struct ifaddrs {
#define ifa_broadaddr ifa_dstaddr
#endif
int ROKEN_LIB_FUNCTION
ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL
rk_getifaddrs(struct ifaddrs**);
void ROKEN_LIB_FUNCTION
ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL
rk_freeifaddrs(struct ifaddrs*);
#define getifaddrs(a) rk_getifaddrs(a)