mirror of
https://github.com/samba-team/samba.git
synced 2025-12-07 20:23:50 +03:00
r25624: Remove ipv4_addr hack. Only causes 4 extra includes of system/network.h because we stripped down includes.
This commit is contained in:
committed by
Stefan Metzmacher
parent
398940031b
commit
262c1c23a6
@@ -79,19 +79,12 @@ _PUBLIC_ struct hostent *sys_gethostbyname(const char *name)
|
||||
#endif /* REDUCE_ROOT_DNS_LOOKUPS */
|
||||
}
|
||||
|
||||
_PUBLIC_ const char *sys_inet_ntoa(struct ipv4_addr in)
|
||||
{
|
||||
struct in_addr in2;
|
||||
in2.s_addr = in.addr;
|
||||
return inet_ntoa(in2);
|
||||
}
|
||||
|
||||
_PUBLIC_ struct ipv4_addr sys_inet_makeaddr(int net, int host)
|
||||
_PUBLIC_ struct in_addr sys_inet_makeaddr(int net, int host)
|
||||
{
|
||||
struct in_addr in;
|
||||
struct ipv4_addr in2;
|
||||
struct in_addr in2;
|
||||
in = inet_makeaddr(net, host);
|
||||
in2.addr = in.s_addr;
|
||||
in2.s_addr = in.s_addr;
|
||||
return in2;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user