summaryrefslogtreecommitdiff
path: root/source4/lib/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/system.c')
-rw-r--r--source4/lib/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/system.c b/source4/lib/system.c
index 5e106c96eb..d50005e8c8 100644
--- a/source4/lib/system.c
+++ b/source4/lib/system.c
@@ -540,7 +540,7 @@ int sys_dup2(int oldfd, int newfd)
const char *sys_inet_ntoa(struct ipv4_addr in)
{
struct in_addr in2;
- in2.s_addr = in.s_addr;
+ in2.s_addr = in.addr;
return inet_ntoa(in2);
}
@@ -554,7 +554,7 @@ struct ipv4_addr sys_inet_makeaddr(int net, int host)
struct in_addr in;
struct ipv4_addr in2;
in = inet_makeaddr(net, host);
- in2.s_addr = in.s_addr;
+ in2.addr = in.s_addr;
return in2;
}