Mercurial > vim
comparison src/crypt.c @ 32009:4545f58c8490 v9.0.1336
patch 9.0.1336: functions without arguments are not always declared properly
Commit: https://github.com/vim/vim/commit/a23a11b5bf03454b71fdb5deac0d5f641e222160
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Feb 21 14:27:41 2023 +0000
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 https://github.com/vim/vim/issues/12031)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 21 Feb 2023 15:30:08 +0100 |
parents | 540e85ac14c9 |
children | ca4e81de477a |
comparison
equal
deleted
inserted
replaced
32008:6b51ad8c5e8e | 32009:4545f58c8490 |
---|---|
153 | 153 |
154 // NOTE: when adding a new method, use some random bytes for the magic key, | 154 // NOTE: when adding a new method, use some random bytes for the magic key, |
155 // to avoid that a text file is recognized as encrypted. | 155 // to avoid that a text file is recognized as encrypted. |
156 }; | 156 }; |
157 | 157 |
158 #ifdef FEAT_SODIUM | 158 #if defined(FEAT_SODIUM) || defined(PROTO) |
159 typedef struct { | 159 typedef struct { |
160 size_t count; | 160 size_t count; |
161 unsigned char key[crypto_box_SEEDBYTES]; | 161 unsigned char key[crypto_box_SEEDBYTES]; |
162 // 32, same as crypto_secretstream_xchacha20poly1305_KEYBYTES | 162 // 32, same as crypto_secretstream_xchacha20poly1305_KEYBYTES |
163 crypto_secretstream_xchacha20poly1305_state | 163 crypto_secretstream_xchacha20poly1305_state |
394 #if defined(FEAT_SODIUM) || defined(PROTO) | 394 #if defined(FEAT_SODIUM) || defined(PROTO) |
395 /* | 395 /* |
396 * Get maximum crypt method specific length of the file header in bytes. | 396 * Get maximum crypt method specific length of the file header in bytes. |
397 */ | 397 */ |
398 int | 398 int |
399 crypt_get_max_header_len() | 399 crypt_get_max_header_len(void) |
400 { | 400 { |
401 int i; | 401 int i; |
402 int max = 0; | 402 int max = 0; |
403 int temp = 0; | 403 int temp = 0; |
404 | 404 |