From 55be74ad862d08d88efc2d07e8c66ce560bb8b8b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 6 Oct 2023 16:08:28 +0200 Subject: util/token: rename TOKEN_STRLEN to TOKEN_SIZE TOKEN_STRLEN is not actually the strlen() of the token. It's the size taken by the token included the final zero byte. Change the name to make this clearer, and remove unnecessary +1's. --- include/util/token.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/util/token.h b/include/util/token.h index bdfdaf45..9e6282d4 100644 --- a/include/util/token.h +++ b/include/util/token.h @@ -3,7 +3,8 @@ #include -#define TOKEN_STRLEN 33 -bool generate_token(char out[static TOKEN_STRLEN]); +#define TOKEN_SIZE 33 + +bool generate_token(char out[static TOKEN_SIZE]); #endif -- cgit v1.2.3