summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-01-27 14:12:41 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-01-27 14:12:41 -0600
commita421598360b72505746ff5514541af56a8530a82 (patch)
tree33801ebd3e5a9df1ced0212242366288be8fa175
parent679244ccea82868acb86ef68fe550cb65c475c5c (diff)
parentf82bb2f3057c7e4f81eb85e6f268e596e2c074ae (diff)
downloadnuttx-a421598360b72505746ff5514541af56a8530a82.tar.gz
nuttx-a421598360b72505746ff5514541af56a8530a82.tar.bz2
nuttx-a421598360b72505746ff5514541af56a8530a82.zip
Merge remote-tracking branch 'origin/master' into afunix
-rw-r--r--nuttx/net/socket/recvfrom.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/nuttx/net/socket/recvfrom.c b/nuttx/net/socket/recvfrom.c
index 669deb1a7..61733d574 100644
--- a/nuttx/net/socket/recvfrom.c
+++ b/nuttx/net/socket/recvfrom.c
@@ -116,7 +116,7 @@ struct recvfrom_s
* Copy the read data from the packet
*
* Parameters:
- * dev The sructure of the network driver that caused the interrupt
+ * dev The structure of the network driver that caused the interrupt
* pstate recvfrom state structure
*
* Returned Value:
@@ -679,11 +679,11 @@ static uint16_t recvfrom_tcpinterrupt(FAR struct net_driver_s *dev,
* 1) If CONFIG_NET_TCP_RECVDELAY == 0 then we will consider the
* TCP/IP transfer complete as soon as any data has been received.
* This is safe because if any additional data is received, it
- * will be retained inthe TCP/IP read-ahead buffer until the
+ * will be retained in the TCP/IP read-ahead buffer until the
* next receive is performed.
* 2) CONFIG_NET_TCP_RECVDELAY > 0 may be set to wait a little
* bit to determine if more data will be received. You might
- * do this if read-ahead buffereing is disabled and we want to
+ * do this if read-ahead buffering is disabled and we want to
* minimize the loss of back-to-back packets. In this case,
* the transfer is complete when either a) the entire user buffer
* is full or 2) when the receive timeout occurs (below).
@@ -1033,7 +1033,7 @@ static void recvfrom_init(FAR struct socket *psock, FAR void *buf,
#endif
}
-/* The only uninitialization that has to be performed is destroying the
+/* The only un-initialization that has to be performed is destroying the
* semaphore.
*/
@@ -1626,6 +1626,7 @@ ssize_t psock_recvfrom(FAR struct socket *psock, FAR void *buf, size_t len,
#ifdef CONFIG_NET_IPv6
#ifdef CONFIG_NET_IPv4
+ else
#endif
{
minlen = sizeof(struct sockaddr_in6);