From 1ef61892871802f27639f700f456f675dbae0d15 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Tue, 3 Oct 2023 17:34:53 +0200 Subject: [PATCH] pbuf: fix "returns" documentation on pbuf_get_contiguous() See bug #64049 --- src/core/pbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 1fb64d41..eec83706 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -1099,7 +1099,7 @@ pbuf_copy_partial(const struct pbuf *buf, void *dataptr, u16_t len, u16_t offset * @param len length of data to copy (dataptr must be big enough). No more * than buf->tot_len will be copied, irrespective of len * @param offset offset into the packet buffer from where to begin copying len bytes - * @return the number of bytes copied, or 0 on failure + * @return pointer to 'buffer' on success or NULL on error */ void * pbuf_get_contiguous(const struct pbuf *p, void *buffer, size_t bufsize, u16_t len, u16_t offset)