diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-03-30 18:47:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-03-30 18:47:01 +0100 |
commit | abab0b0fdd6535969447b03a4fffc1947918cf6c (patch) | |
tree | 2d43537a5dce8433ef2b2a37684c9e069392c592 /src/crypt_zip.c | |
parent | bd9bf266fccbf7b7f09e476e09b61f0133e914db (diff) | |
download | vim-git-abab0b0fdd6535969447b03a4fffc1947918cf6c.tar.gz |
patch 8.1.1086: too many curly bracesv8.1.1086
Problem: Too many curly braces.
Solution: Remove curly braces where they are not needed. (Hirohito Higashi,
closes #3982)
Diffstat (limited to 'src/crypt_zip.c')
-rw-r--r-- | src/crypt_zip.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/crypt_zip.c b/src/crypt_zip.c index ed17d956b..864812e18 100644 --- a/src/crypt_zip.c +++ b/src/crypt_zip.c @@ -68,12 +68,12 @@ make_crc_tab(void) /* * Update the encryption keys with the next byte of plain text. */ -#define UPDATE_KEYS_ZIP(keys, c) { \ +#define UPDATE_KEYS_ZIP(keys, c) do { \ keys[0] = CRC32(keys[0], (c)); \ keys[1] += keys[0] & 0xff; \ keys[1] = keys[1] * 134775813L + 1; \ keys[2] = CRC32(keys[2], (int)(keys[1] >> 24)); \ -} +} while (0) /* * Initialize for encryption/decryption. @@ -98,9 +98,7 @@ crypt_zip_init( zs->keys[1] = 591751049L; zs->keys[2] = 878082192L; for (p = key; *p != NUL; ++p) - { UPDATE_KEYS_ZIP(zs->keys, (int)*p); - } } /* |