Fix accept() -- it wanted parts of return address initialized

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2008 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2009-08-02 16:31:50 +00:00
parent 7c8051a574
commit 7c2070bc83
3 changed files with 21 additions and 8 deletions
+2 -2
View File
@@ -3551,7 +3551,7 @@ char *httpd_method_str(int method)
}
}
int httpd_get_conn(httpd_server * hs, int listen_fd, httpd_conn *hc)
int httpd_get_conn(httpd_server *hs, int listen_fd, httpd_conn *hc)
{
httpd_sockaddr sa;
socklen_t sz;
@@ -3596,7 +3596,7 @@ int httpd_get_conn(httpd_server * hs, int listen_fd, httpd_conn *hc)
return GC_NO_MORE;
}
ndbg("accept: %d\n", errno);
ndbg("accept failed: %d\n", errno);
return GC_FAIL;
}