diff options
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_dhcp.c')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_dhcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_dhcp.c b/cpukit/libnetworking/rtems/rtems_dhcp.c index df1acca710..82f8fd9c5b 100644 --- a/cpukit/libnetworking/rtems/rtems_dhcp.c +++ b/cpukit/libnetworking/rtems/rtems_dhcp.c @@ -1048,7 +1048,7 @@ dhcp_init (int update_files) hn = "me"; sethostname (hn, strlen (hn)); } - rtems_rootfs_append_host_rec(*((unsigned long*) &myaddr.sin_addr), hn, dn); + rtems_rootfs_append_host_rec(myaddr.sin_addr.s_addr, hn, dn); /* * Should the given domainname be used here ? @@ -1058,12 +1058,12 @@ dhcp_init (int update_files) hn = rtems_bsdnet_bootp_server_name; else hn = "bootps"; - rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_bootp_server_address), + rtems_rootfs_append_host_rec(rtems_bsdnet_bootp_server_address.s_addr, hn, dn); } if (dhcp_gotlogserver) { - rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_log_host_address), + rtems_rootfs_append_host_rec(rtems_bsdnet_log_host_address.s_addr, "logs", dn); } |