Changeset 5146462f in rtems
- Timestamp:
- 10/21/04 13:42:53 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 4bd22812
- Parents:
- d4d624e2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/ChangeLog
rd4d624e2 r5146462f 1 2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * libnetworking/rtems_servers/ftpd.c: Use POSIX fixed size types. 4 1 5 2004-10-20 Ralf Corsepius <ralf_corsepius@rtems.org> 2 6 -
c/src/libnetworking/rtems_servers/ftpd.c
rd4d624e2 r5146462f 1433 1433 { 1434 1434 int i; 1435 u nsigned8b[NUM_FIELDS];1435 uint8_t b[NUM_FIELDS]; 1436 1436 1437 1437 for(i = 0; i < NUM_FIELDS; ++i) … … 1439 1439 if(a[i] > 255) 1440 1440 break; 1441 b[i] = (u nsigned8)a[i];1441 b[i] = (uint8_t)a[i]; 1442 1442 } 1443 1443 … … 1447 1447 * to specify IP address different than those of the originating client 1448 1448 * for the sake of safety. */ 1449 u nsigned32 const *ip = (unsigned32*)b;1449 uint32_t const *ip = (uint32_t *)b; 1450 1450 if(*ip == info->def_addr.sin_addr.s_addr) 1451 1451 { 1452 1452 info->data_addr.sin_addr.s_addr = *ip; 1453 info->data_addr.sin_port = *(u nsigned16*)(b + 4);1453 info->data_addr.sin_port = *(uint16_t *)(b + 4); 1454 1454 info->data_addr.sin_family = AF_INET; 1455 1455 memset(info->data_addr.sin_zero, 0, sizeof(info->data_addr.sin_zero)); -
cpukit/ftpd/ftpd.c
rd4d624e2 r5146462f 1433 1433 { 1434 1434 int i; 1435 u nsigned8b[NUM_FIELDS];1435 uint8_t b[NUM_FIELDS]; 1436 1436 1437 1437 for(i = 0; i < NUM_FIELDS; ++i) … … 1439 1439 if(a[i] > 255) 1440 1440 break; 1441 b[i] = (u nsigned8)a[i];1441 b[i] = (uint8_t)a[i]; 1442 1442 } 1443 1443 … … 1447 1447 * to specify IP address different than those of the originating client 1448 1448 * for the sake of safety. */ 1449 u nsigned32 const *ip = (unsigned32*)b;1449 uint32_t const *ip = (uint32_t *)b; 1450 1450 if(*ip == info->def_addr.sin_addr.s_addr) 1451 1451 { 1452 1452 info->data_addr.sin_addr.s_addr = *ip; 1453 info->data_addr.sin_port = *(u nsigned16*)(b + 4);1453 info->data_addr.sin_port = *(uint16_t *)(b + 4); 1454 1454 info->data_addr.sin_family = AF_INET; 1455 1455 memset(info->data_addr.sin_zero, 0, sizeof(info->data_addr.sin_zero));
Note: See TracChangeset
for help on using the changeset viewer.