From a23a11b5bf03454b71fdb5deac0d5f641e222160 Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Tue, 21 Feb 2023 14:27:41 +0000 Subject: patch 9.0.1336: functions without arguments are not always declared properly Problem: Functions without arguments are not always declared properly. Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031) --- src/crypt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crypt.c') diff --git a/src/crypt.c b/src/crypt.c index a2740c98a..b4b48c8cc 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -155,7 +155,7 @@ static cryptmethod_T cryptmethods[CRYPT_M_COUNT] = { // to avoid that a text file is recognized as encrypted. }; -#ifdef FEAT_SODIUM +#if defined(FEAT_SODIUM) || defined(PROTO) typedef struct { size_t count; unsigned char key[crypto_box_SEEDBYTES]; @@ -396,7 +396,7 @@ crypt_get_header_len(int method_nr) * Get maximum crypt method specific length of the file header in bytes. */ int -crypt_get_max_header_len() +crypt_get_max_header_len(void) { int i; int max = 0; -- cgit v1.2.1