Adjusted wsocket to match usocket. Adjusted windows projects.

This commit is contained in:
Diego Nehab 2004-01-21 20:16:48 +00:00
parent 195069cf5f
commit 42e0e74487
6 changed files with 79 additions and 63 deletions

View file

@ -140,7 +140,7 @@ int sock_accept(p_sock ps, p_sock pa, SA *addr, socklen_t *addr_len, p_tm tm)
{
t_sock sock = *ps;
SA dummy_addr;
socklen_t dummy_len;
socklen_t dummy_len = sizeof(dummy_addr);
if (sock == SOCK_INVALID) return IO_CLOSED;
if (!addr) addr = &dummy_addr;
if (!addr_len) addr_len = &dummy_len;