Branch: Tag:

2014-09-03

2014-09-03 17:53:37 by Martin Nilsson <nilsson@opera.com>

memset is C89 and 4.3BSD

4164:    */    ACCEPT_SIZE_T len;    -  MEMSET(&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)
4196:    * Let's hope those few people who don't have socketpair have    * a loopback on 127.0.0.1    */ -  MEMSET(&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);