From cbe05268d4fb2ed31d6e3a9172cda3c73ac44699 Mon Sep 17 00:00:00 2001 From: Albert Chu Date: Thu, 3 Aug 2017 15:50:02 -0700 Subject: [PATCH] common/libutil: Fix base64 API documentation base64_encode_block() and base64_decode_block() require dstlen to be passed in, but the header files say they are optional. Adjust documentation appropriately. --- src/common/libutil/base64.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/libutil/base64.h b/src/common/libutil/base64.h index 32720036659a..d3fec58f2951 100644 --- a/src/common/libutil/base64.h +++ b/src/common/libutil/base64.h @@ -104,15 +104,15 @@ int base64_cleanup (base64_ctx *x); int base64_encode_block (void *dst, int *dstlen, const void *src, int srclen); /* - * Base64-encodes [srclen] bytes from the contiguous [src] into [dst]. - * If [dstlen] is not NULL, it will be set to the number of bytes written. + * Base64-encodes [srclen] bytes from the contiguous [src] into [dst], and + * [dstlen] will be set to the number of bytes written. * Returns 0 on success, or -1 on error. */ int base64_decode_block (void *dst, int *dstlen, const void *src, int srclen); /* - * Base64-decodes [srclen] bytes from the contiguous [src] into [dst]. - * If [dstlen] is not NULL, it will be set to the number of bytes written. + * Base64-decodes [srclen] bytes from the contiguous [src] into [dst], and + * [dstlen] will be set to the number of bytes written. * Returns 0 on success, or -1 on error. */