Changeset 959e0a0 in rtems


Ignore:
Timestamp:
Apr 12, 2010, 12:50:25 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
f1eb9c6b
Parents:
84221cb
Message:

2010-04-12 Ralf Corsépius <ralf.corsepius@…>

  • libnetworking/lib/ftpfs.c: 16bit target fixes: Use ioctl_command_t as arg to rtems_ftpfs_do_ioctl. Explicitly cast to uint32_t in char[] to uint32_t conversion.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r84221cb r959e0a0  
     12010-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libnetworking/lib/ftpfs.c: 16bit target fixes:
     4        Use ioctl_command_t as arg to rtems_ftpfs_do_ioctl.
     5        Explicitly cast to uint32_t in char[] to uint32_t
     6        conversion.
     7
    182010-04-12      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • cpukit/libnetworking/lib/ftpfs.c

    r84221cb r959e0a0  
    160160static rtems_status_code rtems_ftpfs_do_ioctl(
    161161  const char *mount_point,
    162   int req,
     162  ioctl_command_t req,
    163163  ...
    164164)
     
    927927    return ENOTSUP;
    928928  }
    929   data_address = (uint32_t) ((pe.data [0] << 24) + (pe.data [1] << 16)
    930     + (pe.data [2] << 8) + pe.data [3]);
     929  data_address = ((uint32_t)(pe.data [0]) << 24) + ((uint32_t)(pe.data [1]) << 16)
     930    + ((uint32_t)(pe.data [2]) << 8) + ((uint32_t)(pe.data [3]));
    931931  data_port = (uint16_t) ((pe.data [4] << 8) + pe.data [5]);
    932932  rtems_ftpfs_create_address( &sa, htonl( data_address), htons( data_port));
Note: See TracChangeset for help on using the changeset viewer.