From 3283135f169796c5bc8f818a64d24c510cbdc287 Mon Sep 17 00:00:00 2001 From: Samanta Navarro Date: Sat, 28 Nov 2020 11:40:28 +0000 Subject: [PATCH] lib: fix utils_safe_memory function comments. --- lib/libcryptsetup.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/libcryptsetup.h b/lib/libcryptsetup.h index 953f5839..43cf509a 100644 --- a/lib/libcryptsetup.h +++ b/lib/libcryptsetup.h @@ -2407,17 +2407,15 @@ crypt_reencrypt_info crypt_reencrypt_status(struct crypt_device *cd, * * @param size size of memory in bytes * - * @return pointer to allocate memory or @e NULL. + * @return pointer to allocated memory or @e NULL. */ void *crypt_safe_alloc(size_t size); /** - * Release safe memory, content is safely wiped + * Release safe memory, content is safely wiped. * The pointer must be allocated with @link crypt_safe_alloc @endlink * * @param data pointer to memory to be deallocated - * - * @return pointer to allocate memory or @e NULL. */ void crypt_safe_free(void *data); @@ -2427,17 +2425,15 @@ void crypt_safe_free(void *data); * @param data pointer to memory to be deallocated * @param size new size of memory in bytes * - * @return pointer to allocate memory or @e NULL. + * @return pointer to allocated memory or @e NULL. */ void *crypt_safe_realloc(void *data, size_t size); /** * Safe clear memory area (compile should not compile this call out). * - * @param data pointer to memory to cleared - * @param size new size of memory in bytes - * - * @return pointer to allocate memory or @e NULL. + * @param data pointer to memory to be cleared + * @param size size of memory in bytes */ void crypt_safe_memzero(void *data, size_t size);