diff options
author | Haru <haru@dotalux.com> | 2018-06-24 00:13:59 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2018-07-01 21:09:24 +0200 |
commit | 8dd7aec896efc0220d6234bcfb190767c30dbb29 (patch) | |
tree | 0fd1b8d2b795c01b4a6fddc3827784d26d09cc61 /src/common/des.c | |
parent | ec1bc50b01aa4f34f151b3b3800011abdce31919 (diff) | |
download | hercules-8dd7aec896efc0220d6234bcfb190767c30dbb29.tar.gz hercules-8dd7aec896efc0220d6234bcfb190767c30dbb29.tar.bz2 hercules-8dd7aec896efc0220d6234bcfb190767c30dbb29.tar.xz hercules-8dd7aec896efc0220d6234bcfb190767c30dbb29.zip |
Change functions to static where possible (Part 1 - common)
This fixes issues with plugins defining symbols with the same names
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/des.c')
-rw-r--r-- | src/common/des.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/des.c b/src/common/des.c index 2223f4744..fbd158265 100644 --- a/src/common/des.c +++ b/src/common/des.c @@ -29,7 +29,7 @@ * Implementation of the des interface. */ -struct des_interface des_s; +static struct des_interface des_s; struct des_interface *des; /// Bitmask for accessing individual bits of a byte. @@ -228,7 +228,7 @@ static void des_RoundFunction(struct des_bit64 *src) } /// @copydoc des_interface::decrypt_block() -void des_decrypt_block(struct des_bit64 *block) +static void des_decrypt_block(struct des_bit64 *block) { des_IP(block); des_RoundFunction(block); @@ -236,7 +236,7 @@ void des_decrypt_block(struct des_bit64 *block) } /// @copydoc des_interface::decrypt() -void des_decrypt(unsigned char *data, size_t size) +static void des_decrypt(unsigned char *data, size_t size) { struct des_bit64 *p = (struct des_bit64 *)data; size_t i; |