comparison svr-main.c @ 539:07a58e4da1ac

use memset() rather than bzero()
author Matt Johnston <matt@ucc.asn.au>
date Mon, 08 Jun 2009 14:40:29 +0000
parents df7f7da7f6e4
children 005530560594
comparison
equal deleted inserted replaced
538:7c8cdc5d2269 539:07a58e4da1ac
131 131
132 /* sockets to identify pre-authenticated clients */ 132 /* sockets to identify pre-authenticated clients */
133 for (i = 0; i < MAX_UNAUTH_CLIENTS; i++) { 133 for (i = 0; i < MAX_UNAUTH_CLIENTS; i++) {
134 childpipes[i] = -1; 134 childpipes[i] = -1;
135 } 135 }
136 bzero(preauth_addrs, sizeof(preauth_addrs)); 136 memset(preauth_addrs, 0x0, sizeof(preauth_addrs));
137 137
138 /* Set up the listening sockets */ 138 /* Set up the listening sockets */
139 listensockcount = listensockets(listensocks, MAX_LISTEN_ADDR, &maxsock); 139 listensockcount = listensockets(listensocks, MAX_LISTEN_ADDR, &maxsock);
140 if (listensockcount == 0) 140 if (listensockcount == 0)
141 { 141 {