summaryrefslogtreecommitdiffstats
path: root/src/crypt_zip.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-30 15:14:10 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-30 15:14:10 +0100
commit7454a06e2642d2b37afad1c5e71cec68081ca4ff (patch)
tree8b38e652321d9591a2f57e44b9bdc1f590837f7b /src/crypt_zip.c
parent305598b71261265994e2846b4ff4a4d8efade280 (diff)
patch 7.4.1205v7.4.1205
Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
Diffstat (limited to 'src/crypt_zip.c')
-rw-r--r--src/crypt_zip.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/crypt_zip.c b/src/crypt_zip.c
index f7b69b0b2c..d109f5a841 100644
--- a/src/crypt_zip.c
+++ b/src/crypt_zip.c
@@ -44,7 +44,7 @@ static u32_T crc_32_table[256];
* Fill the CRC table, if not done already.
*/
static void
-make_crc_tab()
+make_crc_tab(void)
{
u32_T s, t, v;
static int done = FALSE;
@@ -85,13 +85,13 @@ make_crc_tab()
* Initialize for encryption/decryption.
*/
void
-crypt_zip_init(state, key, salt, salt_len, seed, seed_len)
- cryptstate_T *state;
- char_u *key;
- char_u *salt UNUSED;
- int salt_len UNUSED;
- char_u *seed UNUSED;
- int seed_len UNUSED;
+crypt_zip_init(
+ cryptstate_T *state,
+ char_u *key,
+ char_u *salt UNUSED,
+ int salt_len UNUSED,
+ char_u *seed UNUSED,
+ int seed_len UNUSED)
{
char_u *p;
zip_state_T *zs;
@@ -114,11 +114,11 @@ crypt_zip_init(state, key, salt, salt_len, seed, seed_len)
* "from" and "to" can be equal to encrypt in place.
*/
void
-crypt_zip_encode(state, from, len, to)
- cryptstate_T *state;
- char_u *from;
- size_t len;
- char_u *to;
+crypt_zip_encode(
+ cryptstate_T *state,
+ char_u *from,
+ size_t len,
+ char_u *to)
{
zip_state_T *zs = state->method_state;
size_t i;
@@ -137,11 +137,11 @@ crypt_zip_encode(state, from, len, to)
* Decrypt "from[len]" into "to[len]".
*/
void
-crypt_zip_decode(state, from, len, to)
- cryptstate_T *state;
- char_u *from;
- size_t len;
- char_u *to;
+crypt_zip_decode(
+ cryptstate_T *state,
+ char_u *from,
+ size_t len,
+ char_u *to)
{
zip_state_T *zs = state->method_state;
size_t i;