Changeset 5146462f in rtems for cpukit/ftpd/ftpd.c


Ignore:
Timestamp:
Oct 21, 2004, 1:42:53 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4bd22812
Parents:
d4d624e2
Message:

2004-10-21 Ralf Corsepius <ralf_corsepius@…>

  • libnetworking/rtems_servers/ftpd.c: Use POSIX fixed size types.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ftpd/ftpd.c

    rd4d624e2 r5146462f  
    14331433  {
    14341434    int i;
    1435     unsigned8 b[NUM_FIELDS];
     1435    uint8_t b[NUM_FIELDS];
    14361436
    14371437    for(i = 0; i < NUM_FIELDS; ++i)
     
    14391439      if(a[i] > 255)
    14401440        break;
    1441       b[i] = (unsigned8)a[i];
     1441      b[i] = (uint8_t)a[i];
    14421442    }
    14431443
     
    14471447       * to specify IP address different than those of the originating client
    14481448       * for the sake of safety. */
    1449       unsigned32 const *ip   = (unsigned32 *)b;
     1449      uint32_t const *ip   = (uint32_t *)b;
    14501450      if(*ip == info->def_addr.sin_addr.s_addr)
    14511451      {
    14521452        info->data_addr.sin_addr.s_addr = *ip;
    1453         info->data_addr.sin_port        = *(unsigned16 *)(b + 4);
     1453        info->data_addr.sin_port        = *(uint16_t *)(b + 4);
    14541454        info->data_addr.sin_family      = AF_INET;
    14551455        memset(info->data_addr.sin_zero, 0, sizeof(info->data_addr.sin_zero));
Note: See TracChangeset for help on using the changeset viewer.