Changeset 64b287e3 in rtems


Ignore:
Timestamp:
Jun 16, 2010, 1:52:04 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10
Children:
443ee5a
Parents:
54cad05
Message:

2010-06-15 Ralf Corsépius <ralf.corsepius@…>

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.
Location:
cpukit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r54cad05 r64b287e3  
     12010-06-15      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        PR 1566/filesystem
     4        * libnetworking/rtems/mkrootfs.c,  libnetworking/rtems/mkrootfs.h:
     5        Let rtems_rootfs_append_host_rec take an in_addr_t as first arg.
     6        * libnetworking/rtems/rtems_dhcp.c, libnetworking/nfs/bootp_subr.c:
     7        Reflect changes above.
     8
    192010-06-15      Ralf Corsépius <ralf.corsepius@rtems.org>
    210
  • cpukit/libnetworking/nfs/bootp_subr.c

    r54cad05 r64b287e3  
    11541154    if (!hn)
    11551155      hn = "me";
    1156     rtems_rootfs_append_host_rec(*((unsigned long*) &myaddr.sin_addr), hn, dn);
     1156    rtems_rootfs_append_host_rec(myaddr.sin_addr.s_addr, hn, dn);
    11571157
    11581158    /*
     
    11641164      else
    11651165        hn = "bootps";
    1166       rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_bootp_server_address),
     1166      rtems_rootfs_append_host_rec(rtems_bsdnet_bootp_server_address.s_addr,
    11671167                                   hn, dn);
    11681168    }
    11691169
    11701170    if (dhcp_gotlogserver) {
    1171       rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_log_host_address),
     1171      rtems_rootfs_append_host_rec(rtems_bsdnet_log_host_address.s_addr,
    11721172                                   "logs", dn);
    11731173    }
  • cpukit/libnetworking/rtems/mkrootfs.c

    r54cad05 r64b287e3  
    256256
    257257int
    258 rtems_rootfs_append_host_rec (unsigned long cip,
     258rtems_rootfs_append_host_rec (in_addr_t cip,
    259259                              const char    *cname,
    260260                              const char    *dname)
  • cpukit/libnetworking/rtems/mkrootfs.h

    r54cad05 r64b287e3  
    5454
    5555int
    56 rtems_rootfs_append_host_rec (unsigned long cip,
     56rtems_rootfs_append_host_rec (in_addr_t cip,
    5757                              const char    *cname,
    5858                              const char    *dname);
  • cpukit/libnetworking/rtems/rtems_dhcp.c

    r54cad05 r64b287e3  
    10491049      sethostname (hn, strlen (hn));
    10501050    }
    1051     rtems_rootfs_append_host_rec(*((unsigned long*) &myaddr.sin_addr), hn, dn);
     1051    rtems_rootfs_append_host_rec(myaddr.sin_addr.s_addr, hn, dn);
    10521052
    10531053    /*
     
    10591059      else
    10601060        hn = "bootps";
    1061       rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_bootp_server_address),
     1061      rtems_rootfs_append_host_rec(rtems_bsdnet_bootp_server_address.s_addr,
    10621062                                   hn, dn);
    10631063    }
    10641064
    10651065    if (dhcp_gotlogserver) {
    1066       rtems_rootfs_append_host_rec(*((unsigned long *) &rtems_bsdnet_log_host_address),
     1066      rtems_rootfs_append_host_rec(rtems_bsdnet_log_host_address.s_addr,
    10671067                                   "logs", dn);
    10681068    }
Note: See TracChangeset for help on using the changeset viewer.