summaryrefslogtreecommitdiffstats
path: root/cpukit/ftpd
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-10-21 13:42:53 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-10-21 13:42:53 +0000
commit5146462f04bebbed0de4200c934bf5472c5a5427 (patch)
tree857538e92f0edcb796b915e15d3690a0026a76e4 /cpukit/ftpd
parentd4d624e2237260ef50a814988893ea743abf092f (diff)
downloadrtems-5146462f04bebbed0de4200c934bf5472c5a5427.tar.bz2
2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>
* libnetworking/rtems_servers/ftpd.c: Use POSIX fixed size types.
Diffstat (limited to 'cpukit/ftpd')
-rw-r--r--cpukit/ftpd/ftpd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/ftpd/ftpd.c b/cpukit/ftpd/ftpd.c
index 79a293eb0f..e6e2c683d9 100644
--- a/cpukit/ftpd/ftpd.c
+++ b/cpukit/ftpd/ftpd.c
@@ -1432,13 +1432,13 @@ command_port(FTPD_SessionInfo_t *info, char const *args)
if(NUM_FIELDS == n)
{
int i;
- unsigned8 b[NUM_FIELDS];
+ uint8_t b[NUM_FIELDS];
for(i = 0; i < NUM_FIELDS; ++i)
{
if(a[i] > 255)
break;
- b[i] = (unsigned8)a[i];
+ b[i] = (uint8_t)a[i];
}
if(i == NUM_FIELDS)
@@ -1446,11 +1446,11 @@ command_port(FTPD_SessionInfo_t *info, char const *args)
/* Note: while it contradicts with RFC959, we don't allow PORT command
* to specify IP address different than those of the originating client
* for the sake of safety. */
- unsigned32 const *ip = (unsigned32 *)b;
+ uint32_t const *ip = (uint32_t *)b;
if(*ip == info->def_addr.sin_addr.s_addr)
{
info->data_addr.sin_addr.s_addr = *ip;
- info->data_addr.sin_port = *(unsigned16 *)(b + 4);
+ info->data_addr.sin_port = *(uint16_t *)(b + 4);
info->data_addr.sin_family = AF_INET;
memset(info->data_addr.sin_zero, 0, sizeof(info->data_addr.sin_zero));