Branch: Tag:

2014-04-27

2014-04-27 21:18:05 by Martin Nilsson <nilsson@opera.com>

memset takes void* as first argument, no casting needed.

4131:    */    ACCEPT_SIZE_T len;    -  MEMSET((char *)&addr,0,sizeof(struct sockaddr_in)); +  MEMSET(&addr,0,sizeof(struct sockaddr_in));       /* We lie, we actually create an AF_INET socket... */    if(family != AF_UNIX || type != SOCK_STREAM)
4163:    * Let's hope those few people who don't have socketpair have    * a loopback on 127.0.0.1    */ -  MEMSET((char *)&my_addr,0,sizeof(struct sockaddr_in)); +  MEMSET(&my_addr,0,sizeof(struct sockaddr_in));    my_addr.sin_family=AF_INET;    my_addr.sin_addr.s_addr=htonl(INADDR_ANY);    my_addr.sin_port=htons(0);