From 64d29bcf58c07c84f9609b37993613a8e9d00cd4 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 9 May 2005 12:42:59 +0000 Subject: socklen_t, PRIu32. --- cpukit/libnetworking/lib/ftpfs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpukit/libnetworking') 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 #include #include +#include #include #include #include @@ -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, -- cgit v1.2.3