mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
Fix some spacing problems
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user