Fix some spacing problems

This commit is contained in:
Gregory Nutt
2015-10-04 15:04:00 -06:00
parent 863ded3584
commit 0b12dbf95d
88 changed files with 226 additions and 229 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ int net_dupsd(int sockfd, int minsd)
psock1 = sockfd_socket(sockfd);
/* Verify that the sockfd corresponds to valid, allocated socket */
/* Verify that the sockfd corresponds to valid, allocated socket */
if (!psock1 || psock1->s_crefs <= 0)
{
+3 -3
View File
@@ -744,15 +744,15 @@ ssize_t net_sendfile(int outfd, struct file *infile, off_t *offset,
tcp_callback_free(conn, state.snd_ackcb);
errout_datacb:
errout_datacb:
tcp_callback_free(conn, state.snd_datacb);
errout_locked:
errout_locked:
sem_destroy(&state. snd_sem);
net_unlock(save);
errout:
errout:
if (err)
{
+2 -2
View File
@@ -265,8 +265,8 @@ static inline void recvfrom_newtcpdata(FAR struct net_driver_s *dev,
* add it to the read-ahead buffers.
*/
if (recvlen < dev->d_len)
{
if (recvlen < dev->d_len)
{
#ifdef CONFIG_NET_TCP_READAHEAD
FAR struct tcp_conn_s *conn = (FAR struct tcp_conn_s *)pstate->rf_sock->s_conn;
FAR uint8_t *buffer = (FAR uint8_t *)dev->d_appdata + recvlen;
+3 -3
View File
@@ -185,9 +185,9 @@ static int psock_local_alloc(FAR struct socket *psock)
return -ENOMEM;
}
/* Set the reference count on the connection structure. This reference
* count will be incremented only if the socket is dup'ed
*/
/* Set the reference count on the connection structure. This reference
* count will be incremented only if the socket is dup'ed
*/
DEBUGASSERT(conn->lc_crefs == 0);
conn->lc_crefs = 1;