Parts of patch #8397 Typos corrected in comments and text outputs

This commit is contained in:
Simon Goldschmidt
2014-09-18 21:15:13 +02:00
parent aa6f6bc3aa
commit 33237419c1
41 changed files with 115 additions and 115 deletions

View File

@@ -644,7 +644,7 @@ netconn_send(struct netconn *conn, struct netbuf *buf)
* @param apiflags combination of following flags :
* - NETCONN_COPY: data will be copied into memory belonging to the stack
* - NETCONN_MORE: for TCP connection, PSH flag will be set on last segment sent
* - NETCONN_DONTBLOCK: only write the data if all dat can be written at once
* - NETCONN_DONTBLOCK: only write the data if all data can be written at once
* @param bytes_written pointer to a location that receives the number of written bytes
* @return ERR_OK if data was sent, any other err_t on error
*/
@@ -708,7 +708,7 @@ netconn_write_partly(struct netconn *conn, const void *dataptr, size_t size,
}
/**
* Close ot shutdown a TCP netconn (doesn't delete it).
* Close or shutdown a TCP netconn (doesn't delete it).
*
* @param conn the TCP netconn to close or shutdown
* @param how fully close or only shutdown one side?

View File

@@ -186,7 +186,7 @@ netbuf_chain(struct netbuf *head, struct netbuf *tail)
* @param buf netbuf to get the data from
* @param dataptr pointer to a void pointer where to store the data pointer
* @param len pointer to an u16_t where the length of the data is stored
* @return ERR_OK if the information was retreived,
* @return ERR_OK if the information was retrieved,
* ERR_BUF on error.
*/
err_t

View File

@@ -236,7 +236,7 @@ static const int err_to_errno_table[] = {
set_errno(sk->err); \
} while (0)
/* Forward delcaration of some functions */
/* Forward declaration of some functions */
static void event_callback(struct netconn *conn, enum netconn_evt evt, u16_t len);
static void lwip_getsockopt_internal(void *arg);
static void lwip_setsockopt_internal(void *arg);
@@ -483,7 +483,7 @@ lwip_bind(int s, const struct sockaddr *name, socklen_t namelen)
return -1;
}
/* check size, familiy and alignment of 'name' */
/* check size, family and alignment of 'name' */
LWIP_ERROR("lwip_bind: invalid address", (IS_SOCK_ADDR_LEN_VALID(namelen) &&
IS_SOCK_ADDR_TYPE_VALID(name) && IS_SOCK_ADDR_ALIGNED(name)),
sock_set_errno(sock, err_to_errno(ERR_ARG)); return -1;);
@@ -558,7 +558,7 @@ lwip_connect(int s, const struct sockaddr *name, socklen_t namelen)
ipX_addr_t remote_addr;
u16_t remote_port;
/* check size, familiy and alignment of 'name' */
/* check size, family and alignment of 'name' */
LWIP_ERROR("lwip_connect: invalid address", IS_SOCK_ADDR_LEN_VALID(namelen) &&
IS_SOCK_ADDR_TYPE_VALID_OR_UNSPEC(name) && IS_SOCK_ADDR_ALIGNED(name),
sock_set_errno(sock, err_to_errno(ERR_ARG)); return -1;);
@@ -1232,7 +1232,7 @@ lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
}
/* Call lwip_selscan again: there could have been events between
the last scan (whithout us on the list) and putting us on the list! */
the last scan (without us on the list) and putting us on the list! */
nready = lwip_selscan(maxfdp1, readset, writeset, exceptset, &lreadset, &lwriteset, &lexceptset);
if (!nready) {
/* Still none ready, just wait to be woken */
@@ -1409,7 +1409,7 @@ again:
if (do_signal) {
scb->sem_signalled = 1;
/* Don't call SYS_ARCH_UNPROTECT() before signaling the semaphore, as this might
lead to the select thread taking itself off the list, invalidagin the semaphore. */
lead to the select thread taking itself off the list, invalidating the semaphore. */
sys_sem_signal(&scb->sem);
}
}
@@ -1827,7 +1827,7 @@ lwip_getsockopt_internal(void *arg)
break;
case SO_ERROR:
/* only overwrite ERR_OK or tempoary errors */
/* only overwrite ERR_OK or temporary errors */
if ((sock->err == 0) || (sock->err == EINPROGRESS)) {
sock_set_errno(sock, err_to_errno(sock->conn->last_err));
}