Changeset 929

Show
Ignore:
Timestamp:
10/13/99 14:52:19 (15 years ago)
Author:
piers
Message:

Corrected some type definitions suggested by:
Jean-Marc Orliaguet <jmo@…>

Location:
vic/trunk/net
Files:
2 modified

Legend:

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

    r903 r929  
    247247        memset((char *)p, 0, sizeof(*p)); 
    248248        p->sin_family = AF_INET; 
    249         int len = sizeof(*p), result =0; 
     249        unsigned int len = sizeof(*p), result =0; 
    250250 
    251251        if ((result = getsockname(ssock_, (struct sockaddr *)p, &len)) < 0) { 
     
    470470{ 
    471471        sockaddr_in sfrom; 
    472         int fromlen = sizeof(sfrom); 
     472        unsigned int fromlen = sizeof(sfrom); 
    473473        int cc = ::recvfrom(fd, (char*)buf, len, 0, 
    474474                            (sockaddr*)&sfrom, &fromlen); 
  • vic/trunk/net/net.cpp

    r903 r929  
    345345{ 
    346346        sockaddr_in sfrom; 
    347         int fromlen = sizeof(sfrom); 
     347        unsigned int fromlen = sizeof(sfrom); 
    348348        int cc = ::recvfrom(fd, (char*)buf, len, 0, 
    349349                            (sockaddr*)&sfrom, &fromlen);