Minor Fix (ident)

This commit is contained in:
fbernon 2007-08-29 20:50:53 +00:00
parent cb3d2b327a
commit da7b5135de

View File

@ -442,11 +442,12 @@ lwip_recvfrom(int s, void *mem, int len, unsigned int flags,
if (netconn_type(sock->conn) == NETCONN_TCP) { if (netconn_type(sock->conn) == NETCONN_TCP) {
len -= copylen; len -= copylen;
if ( (len <= 0) || (buf->p->flags & PBUF_FLAG_PUSH) || !sock->rcvevent) if ( (len <= 0) || (buf->p->flags & PBUF_FLAG_PUSH) || !sock->rcvevent) {
done = 1; done = 1;
} }
else } else {
done = 1; done = 1;
}
/* If we don't peek the incoming message... */ /* If we don't peek the incoming message... */
if ((flags & MSG_PEEK)==0) { if ((flags & MSG_PEEK)==0) {
@ -463,8 +464,9 @@ lwip_recvfrom(int s, void *mem, int len, unsigned int flags,
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom: deleting netbuf=%p\n", buf)); LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_recvfrom: deleting netbuf=%p\n", buf));
netbuf_delete(buf); netbuf_delete(buf);
} }
} else } else {
done = 1; done = 1;
}
} /* while ( !done ) */ } /* while ( !done ) */
/* Check to see from where the data was.*/ /* Check to see from where the data was.*/