summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-05-09 12:42:59 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-05-09 12:42:59 +0000
commit64d29bcf58c07c84f9609b37993613a8e9d00cd4 (patch)
treeaecad9c6df5546a37fd1a6888262a89059258cb9 /cpukit/libnetworking
parentAnsify, socklen_t. (diff)
downloadrtems-64d29bcf58c07c84f9609b37993613a8e9d00cd4.tar.bz2
socklen_t, PRIu32.
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/lib/ftpfs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/libnetworking/lib/ftpfs.c b/cpukit/libnetworking/lib/ftpfs.c
index a89a316e76..49f64d5728 100644
--- a/cpukit/libnetworking/lib/ftpfs.c
+++ b/cpukit/libnetworking/lib/ftpfs.c
@@ -41,6 +41,7 @@
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
+#include <inttypes.h>
#include <ctype.h>
#include <rtems.h>
#include <rtems/libio.h>
@@ -538,7 +539,7 @@ int rtems_ftp_open(
rtems_boolean sema_obtained = FALSE;
struct ftpStream *fsp = NULL;
int msg_tmp;
- int sockaddr_size;
+ socklen_t sockaddr_size;
/*
* check for R/O or W/O flags
*/
@@ -636,7 +637,7 @@ int rtems_ftp_open(
hent = gethostbyname(hostname);
if (hent != NULL) {
- memcpy((char *)(&(fsp->farCtrlAddress.sin_addr)),
+ memcpy(&fsp->farCtrlAddress.sin_addr,
hent->h_addr,
sizeof(fsp->farCtrlAddress.sin_addr));
}
@@ -796,7 +797,7 @@ int rtems_ftp_open(
*/
my_ip = ntohl(fsp->myCtrlAddress.sin_addr.s_addr);
my_port = ntohs(fsp->myDataAddress.sin_port);
- sprintf(port_buffer,"%s%u,%u,%u,%u,%u,%u\n",
+ sprintf(port_buffer,"%s%" PRIu32 ",%" PRIu32 ",%" PRIu32 ",%" PRIu32 ",%" PRIu16 ",%" PRIu16 "\n",
FTP_PORT_CMD,
(my_ip >> 24) & 0x00ff,
(my_ip >> 16) & 0x00ff,