Show
Ignore:
Timestamp:
07/19/01 20:59:32 (13 years ago)
Author:
piers
Message:

Altered variable declaration for call into recvfrom (int, void *, unsigned int, int, sockaddr *, socklen_t *) for arg 6 from int * to socklen_t *. Piers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vic/trunk/net/net-ipv6.cpp

    r1021 r1028  
    298298  memset((char *)p, 0, sizeof(*p)); 
    299299  p->sin6_family = AF_INET6; 
    300   int len = sizeof(*p), result = 0; 
     300  socklen_t len = sizeof(*p), result = 0; 
    301301 
    302302  if ((result = getsockname(ssock_, (struct sockaddr *)p, &len)) < 0) { 
     
    553553{ 
    554554        sockaddr_in6 sfrom; 
    555         int fromlen = sizeof(sfrom); 
     555        socklen_t fromlen = sizeof(sfrom); 
    556556        int cc = ::recvfrom(fd, (char*)buf, len, 0, 
    557557                            (sockaddr*)&sfrom, &fromlen);