mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-27 23:29:10 +08:00
2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2010-04-12 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* configure.ac: Check for sched.h.
|
* configure.ac: Check for sched.h.
|
||||||
|
|||||||
@@ -159,7 +159,7 @@ rtems_status_code rtems_ftpfs_mount( const char *mount_point)
|
|||||||
|
|
||||||
static rtems_status_code rtems_ftpfs_do_ioctl(
|
static rtems_status_code rtems_ftpfs_do_ioctl(
|
||||||
const char *mount_point,
|
const char *mount_point,
|
||||||
int req,
|
ioctl_command_t req,
|
||||||
...
|
...
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -926,8 +926,8 @@ static int rtems_ftpfs_open_data_connection_passive(
|
|||||||
if (reply != RTEMS_FTPFS_REPLY_2) {
|
if (reply != RTEMS_FTPFS_REPLY_2) {
|
||||||
return ENOTSUP;
|
return ENOTSUP;
|
||||||
}
|
}
|
||||||
data_address = (uint32_t) ((pe.data [0] << 24) + (pe.data [1] << 16)
|
data_address = ((uint32_t)(pe.data [0]) << 24) + ((uint32_t)(pe.data [1]) << 16)
|
||||||
+ (pe.data [2] << 8) + pe.data [3]);
|
+ ((uint32_t)(pe.data [2]) << 8) + ((uint32_t)(pe.data [3]));
|
||||||
data_port = (uint16_t) ((pe.data [4] << 8) + pe.data [5]);
|
data_port = (uint16_t) ((pe.data [4] << 8) + pe.data [5]);
|
||||||
rtems_ftpfs_create_address( &sa, htonl( data_address), htons( data_port));
|
rtems_ftpfs_create_address( &sa, htonl( data_address), htons( data_port));
|
||||||
DEBUG_PRINTF(
|
DEBUG_PRINTF(
|
||||||
|
|||||||
Reference in New Issue
Block a user