From bfae233e3e002433f752f12895d68d46c95526f1 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sun, 17 Sep 2017 17:45:26 +0200 Subject: [PATCH] Reformat netbuf.c using astylerc --- src/api/netbuf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/netbuf.c b/src/api/netbuf.c index 3e87178e..3b910de1 100644 --- a/src/api/netbuf.c +++ b/src/api/netbuf.c @@ -109,10 +109,10 @@ netbuf_alloc(struct netbuf *buf, u16_t size) } buf->p = pbuf_alloc(PBUF_TRANSPORT, size, PBUF_RAM); if (buf->p == NULL) { - return NULL; + return NULL; } LWIP_ASSERT("check that first pbuf can hold size", - (buf->p->len >= size)); + (buf->p->len >= size)); buf->ptr = buf->p; return buf->p->payload; } @@ -159,7 +159,7 @@ netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size) buf->ptr = NULL; return ERR_MEM; } - ((struct pbuf_rom*)buf->p)->payload = dataptr; + ((struct pbuf_rom *)buf->p)->payload = dataptr; buf->p->len = buf->p->tot_len = size; buf->ptr = buf->p; return ERR_OK;