Reformat tcpip.c using astylerc

This commit is contained in:
Dirk Ziegelmeier 2017-09-17 17:46:42 +02:00
parent dc9115334e
commit fa33db1448

View File

@ -395,7 +395,7 @@ tcpip_untimeout(sys_timeout_handler h, void *arg)
* @return ERR_OK if the function was called, another err_t if not * @return ERR_OK if the function was called, another err_t if not
*/ */
err_t err_t
tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t* sem) tcpip_send_msg_wait_sem(tcpip_callback_fn fn, void *apimsg, sys_sem_t *sem)
{ {
#if LWIP_TCPIP_CORE_LOCKING #if LWIP_TCPIP_CORE_LOCKING
LWIP_UNUSED_ARG(sem); LWIP_UNUSED_ARG(sem);
@ -480,7 +480,7 @@ tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call_data *call)
* @param ctx parameter passed to function * @param ctx parameter passed to function
* @return a struct pointer to pass to tcpip_trycallback(). * @return a struct pointer to pass to tcpip_trycallback().
*/ */
struct tcpip_callback_msg* struct tcpip_callback_msg *
tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx) tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx)
{ {
struct tcpip_msg *msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API); struct tcpip_msg *msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_API);
@ -490,7 +490,7 @@ tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx)
msg->type = TCPIP_MSG_CALLBACK_STATIC; msg->type = TCPIP_MSG_CALLBACK_STATIC;
msg->msg.cb.function = function; msg->msg.cb.function = function;
msg->msg.cb.ctx = ctx; msg->msg.cb.ctx = ctx;
return (struct tcpip_callback_msg*)msg; return (struct tcpip_callback_msg *)msg;
} }
/** /**
@ -499,7 +499,7 @@ tcpip_callbackmsg_new(tcpip_callback_fn function, void *ctx)
* @param msg the message to free * @param msg the message to free
*/ */
void void
tcpip_callbackmsg_delete(struct tcpip_callback_msg* msg) tcpip_callbackmsg_delete(struct tcpip_callback_msg *msg)
{ {
memp_free(MEMP_TCPIP_MSG_API, msg); memp_free(MEMP_TCPIP_MSG_API, msg);
} }
@ -512,7 +512,7 @@ tcpip_callbackmsg_delete(struct tcpip_callback_msg* msg)
* @return sys_mbox_trypost() return code * @return sys_mbox_trypost() return code
*/ */
err_t err_t
tcpip_trycallback(struct tcpip_callback_msg* msg) tcpip_trycallback(struct tcpip_callback_msg *msg)
{ {
LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(mbox)); LWIP_ASSERT("Invalid mbox", sys_mbox_valid_val(mbox));
return sys_mbox_trypost(&mbox, msg); return sys_mbox_trypost(&mbox, msg);