From 959e0a0a80c365e6abed7fbcfa6d7a2d16498e85 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 12 Apr 2010 12:50:25 +0000 Subject: =?UTF-8?q?2010-04-12=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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. --- cpukit/libnetworking/lib/ftpfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpukit/libnetworking') diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c index 2af6c51c1e..bba93b02e0 100644 --- a/cpukit/libnetworking/lib/ftpfs.c +++ b/cpukit/libnetworking/lib/ftpfs.c @@ -159,7 +159,7 @@ rtems_status_code rtems_ftpfs_mount( const char *mount_point) static rtems_status_code rtems_ftpfs_do_ioctl( 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) { return ENOTSUP; } - data_address = (uint32_t) ((pe.data [0] << 24) + (pe.data [1] << 16) - + (pe.data [2] << 8) + pe.data [3]); + data_address = ((uint32_t)(pe.data [0]) << 24) + ((uint32_t)(pe.data [1]) << 16) + + ((uint32_t)(pe.data [2]) << 8) + ((uint32_t)(pe.data [3])); data_port = (uint16_t) ((pe.data [4] << 8) + pe.data [5]); rtems_ftpfs_create_address( &sa, htonl( data_address), htons( data_port)); DEBUG_PRINTF( -- cgit v1.2.3