9
0
Fork 0

Should fix another warning reported by Travis

This commit is contained in:
Gregory Nutt 2015-01-30 08:57:35 -06:00
parent 41da4c6918
commit ad14d6ca76
1 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ int psock_tcp_accept(FAR struct socket *psock, FAR struct sockaddr *addr,
{
FAR struct tcp_conn_s *conn;
struct accept_s state;
int err;
int err = OK;
int ret;
DEBUGASSERT(psock && newconn);
@ -339,7 +339,7 @@ int psock_tcp_accept(FAR struct socket *psock, FAR struct sockaddr *addr,
/* If net_lockedwait failed, then we were probably reawakened by a
* signal. In this case, logic above will have set 'err' to the
* ernno value returned by net_lockedwait().
* errno value returned by net_lockedwait().
*/
if (ret < 0)