Changeset f36479


Ignore:
Timestamp:
10/07/08 10:02:35 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master
Children:
02370d
Parents:
c93eb8
git-author:
Tomash Brechko <tomash.brechko@…> (10/07/08 10:02:35)
git-committer:
Tomash Brechko <tomash.brechko@…> (10/07/08 10:02:35)
Message:

Add cast to void* that may be necessary to suppress a warning.

It may be necessary if prototype has char* (Win32, maybe some
older systems too).

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/client.c

    rb1ae26 rf36479  
    15311531      static const int enable = 1; 
    15321532      setsockopt(state->fd, IPPROTO_TCP, TCP_NODELAY, 
    1533                  &enable, sizeof(enable)); 
     1533                 (void *) &enable, sizeof(enable)); 
    15341534      state->socket_mode = TCP_LATENCY; 
    15351535    } 
     
    15471547      static const int disable = 0; 
    15481548      setsockopt(state->fd, IPPROTO_TCP, TCP_NODELAY, 
    1549                  &disable, sizeof(disable)); 
     1549                 (void *) &disable, sizeof(disable)); 
    15501550      state->socket_mode = TCP_THROUGHPUT; 
    15511551    } 
  • src/connect.c

    rb1ae26 rf36479  
    105105      socket_error_len = sizeof(socket_error); 
    106106      res = getsockopt(fd, SOL_SOCKET, SO_ERROR, 
    107                        &socket_error, &socket_error_len); 
     107                       (void *) &socket_error, &socket_error_len); 
    108108      if (res == 0 && socket_error == 0) 
    109109        break; 
Note: See TracChangeset for help on using the changeset viewer.