inet: hide relocations

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
Bernhard Reutner-Fischer 2011-11-17 11:01:04 +01:00
parent 5a2b42a483
commit fbe324024d
2 changed files with 4 additions and 1 deletions

View File

@ -65,9 +65,11 @@ struct ifaddrs
The storage returned in *IFAP is allocated dynamically and can
only be properly freed by passing it to `freeifaddrs'. */
extern int getifaddrs (struct ifaddrs **__ifap) __THROW;
libc_hidden_proto(getifaddrs)
/* Reclaim the storage allocated by a previous `getifaddrs' call. */
extern void freeifaddrs (struct ifaddrs *__ifa) __THROW;
libc_hidden_proto(freeifaddrs)
__END_DECLS

View File

@ -845,13 +845,14 @@ getifaddrs (struct ifaddrs **ifap)
return result;
}
libc_hidden_def(getifaddrs)
void
freeifaddrs (struct ifaddrs *ifa)
{
free (ifa);
}
libc_hidden_def(freeifaddrs)
#endif /* __UCLIBC_SUPPORT_AI_ADDRCONFIG__ */