Changeset 64d29bcf in rtems


Ignore:
Timestamp:
May 9, 2005, 12:42:59 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4fea4455
Parents:
a0a03de2
Message:

socklen_t, PRIu32.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/lib/ftpfs.c

    ra0a03de2 r64d29bcf  
    4242#include <fcntl.h>
    4343#include <unistd.h>
     44#include <inttypes.h>
    4445#include <ctype.h>
    4546#include <rtems.h>
     
    539540  struct ftpStream *fsp = NULL;
    540541  int msg_tmp;
    541   int sockaddr_size;
     542  socklen_t sockaddr_size;
    542543  /*
    543544   * check for R/O or W/O flags
     
    637638      hent = gethostbyname(hostname);
    638639      if (hent != NULL) {
    639         memcpy((char *)(&(fsp->farCtrlAddress.sin_addr)),
     640        memcpy(&fsp->farCtrlAddress.sin_addr,
    640641              hent->h_addr,
    641642              sizeof(fsp->farCtrlAddress.sin_addr));
     
    797798    my_ip   = ntohl(fsp->myCtrlAddress.sin_addr.s_addr);
    798799    my_port = ntohs(fsp->myDataAddress.sin_port);
    799     sprintf(port_buffer,"%s%u,%u,%u,%u,%u,%u\n",
     800    sprintf(port_buffer,"%s%" PRIu32 ",%" PRIu32 ",%" PRIu32 ",%" PRIu32 ",%" PRIu16 ",%" PRIu16 "\n",
    800801            FTP_PORT_CMD,
    801802            (my_ip >> 24) & 0x00ff,
Note: See TracChangeset for help on using the changeset viewer.