summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-03-28 11:05:00 +0200
committerSimon Glass <sjg@chromium.org>2021-04-06 16:33:19 +1200
commit4c30d18ed38c5ae84ed91da0f9d1ba4c9e83bffc (patch)
tree3c6a248d0e42d1739bddeca372f3abfa57cd1775
parent48f45455bf1955ca1b2ba89bda256af2803a7126 (diff)
downloadu-boot-4c30d18ed38c5ae84ed91da0f9d1ba4c9e83bffc.tar.gz
sandbox: document parameters of os_realloc()
Avoid 'make htmldocs' build warnings: ./include/os.h:139: warning: Function parameter or member 'ptr' not described in 'os_realloc' ./include/os.h:139: warning: Function parameter or member 'length' not described in 'os_realloc' Fixes: 14e46dfb176b ("sandbox: Add os_realloc()") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/os.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/os.h b/include/os.h
index 77d8bd89d0..bd1096eb8b 100644
--- a/include/os.h
+++ b/include/os.h
@@ -134,7 +134,9 @@ void os_free(void *ptr);
* This follows the semantics of realloc(), so can perform an os_malloc() or
* os_free() depending on @ptr and @length.
*
- * Return: Pointer to reallocated memory or NULL if @length is 0
+ * @ptr: pointer to previously allocated memory of NULL
+ * @length: number of bytes to allocate
+ * Return: pointer to reallocated memory or NULL if @length is 0
*/
void *os_realloc(void *ptr, size_t length);