From c428ec09795b81d4af2207ded1835e9cdb9ea05a Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 16 Jun 2010 13:50:23 +0000 Subject: =?UTF-8?q?2010-06-15=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR 1566/filesystem * libnetworking/rtems/mkrootfs.c, libnetworking/rtems/mkrootfs.h: Let rtems_rootfs_append_host_rec take an in_addr_t as first arg. * libnetworking/rtems/rtems_dhcp.c, libnetworking/nfs/bootp_subr.c: Reflect changes above. --- cpukit/libnetworking/nfs/bootp_subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/libnetworking/nfs/bootp_subr.c') diff --git a/cpukit/libnetworking/nfs/bootp_subr.c b/cpukit/libnetworking/nfs/bootp_subr.c index cdac406cdc..e976227d4d 100644 --- a/cpukit/libnetworking/nfs/bootp_subr.c +++ b/cpukit/libnetworking/nfs/bootp_subr.c @@ -1153,7 +1153,7 @@ bootpc_init(bool update_files, bool forever) dn = "mydomain"; if (!hn) hn = "me"; - 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 ? @@ -1163,12 +1163,12 @@ bootpc_init(bool update_files, bool forever) 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); } -- cgit v1.2.3