mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
Make lwIP compile with clang -Wdocumentation -> several documentation fixes
This commit is contained in:
@@ -306,7 +306,7 @@ netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port)
|
||||
* Disconnect a netconn from its current peer (only valid for UDP netconns).
|
||||
*
|
||||
* @param conn the netconn to disconnect
|
||||
* @return @todo: return value is not set here...
|
||||
* @return See @ref err_t
|
||||
*/
|
||||
err_t
|
||||
netconn_disconnect(struct netconn *conn)
|
||||
|
||||
@@ -540,7 +540,6 @@ accept_function(void *arg, struct tcp_pcb *newpcb, err_t err)
|
||||
* Called from lwip_netconn_do_newconn().
|
||||
*
|
||||
* @param msg the api_msg_msg describing the connection type
|
||||
* @return msg->conn->err, but the return value is currently ignored
|
||||
*/
|
||||
static void
|
||||
pcb_new(struct api_msg *msg)
|
||||
@@ -807,7 +806,6 @@ netconn_drain(struct netconn *conn)
|
||||
* places.
|
||||
*
|
||||
* @param conn the TCP netconn to close
|
||||
* [@param delay 1 if called from sent/poll (wake up calling thread on end)]
|
||||
*/
|
||||
static err_t
|
||||
lwip_netconn_do_close_internal(struct netconn *conn WRITE_DELAYED_PARAM)
|
||||
@@ -1492,7 +1490,6 @@ lwip_netconn_do_accepted(void *m)
|
||||
* blocking application thread (waiting in netconn_write) is released.
|
||||
*
|
||||
* @param conn netconn (that is currently in state NETCONN_WRITE) to process
|
||||
* [@param delay 1 if called from sent/poll (wake up calling thread on end)]
|
||||
* @return ERR_OK
|
||||
* ERR_MEM if LWIP_TCPIP_CORE_LOCKING=1 and sending hasn't yet finished
|
||||
*/
|
||||
|
||||
@@ -1258,12 +1258,12 @@ lwip_writev(int s, const struct iovec *iov, int iovcnt)
|
||||
* the sockets enabled that had events.
|
||||
*
|
||||
* @param maxfdp1 the highest socket index in the sets
|
||||
* @param readset_in: set of sockets to check for read events
|
||||
* @param writeset_in: set of sockets to check for write events
|
||||
* @param exceptset_in: set of sockets to check for error events
|
||||
* @param readset_out: set of sockets that had read events
|
||||
* @param writeset_out: set of sockets that had write events
|
||||
* @param exceptset_out: set os sockets that had error events
|
||||
* @param readset_in set of sockets to check for read events
|
||||
* @param writeset_in set of sockets to check for write events
|
||||
* @param exceptset_in set of sockets to check for error events
|
||||
* @param readset_out set of sockets that had read events
|
||||
* @param writeset_out set of sockets that had write events
|
||||
* @param exceptset_out set os sockets that had error events
|
||||
* @return number of sockets that had events (read/write/exception) (>= 0)
|
||||
*/
|
||||
static int
|
||||
|
||||
@@ -260,7 +260,7 @@ tcpip_callback_with_block(tcpip_callback_fn function, void *ctx, u8_t block)
|
||||
/**
|
||||
* call sys_timeout in tcpip_thread
|
||||
*
|
||||
* @param msec time in milliseconds for timeout
|
||||
* @param msecs time in milliseconds for timeout
|
||||
* @param h function to be called on timeout
|
||||
* @param arg argument to pass to timeout function h
|
||||
* @return ERR_MEM on memory error, ERR_OK otherwise
|
||||
@@ -288,7 +288,6 @@ tcpip_timeout(u32_t msecs, sys_timeout_handler h, void *arg)
|
||||
/**
|
||||
* call sys_untimeout in tcpip_thread
|
||||
*
|
||||
* @param msec time in milliseconds for timeout
|
||||
* @param h function to be called on timeout
|
||||
* @param arg argument to pass to timeout function h
|
||||
* @return ERR_MEM on memory error, ERR_OK otherwise
|
||||
|
||||
Reference in New Issue
Block a user