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/md5calc.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/md5calc.c')
-rw-r--r-- | src/common/md5calc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/md5calc.c b/src/common/md5calc.c index 9784bd7b8..3f9ccdc41 100644 --- a/src/common/md5calc.c +++ b/src/common/md5calc.c @@ -34,7 +34,7 @@ * Implementation of the md5 interface. */ -struct md5_interface md5_s; +static struct md5_interface md5_s; struct md5_interface *md5; /// Global variable @@ -233,7 +233,7 @@ static void md5_buf2binary(const uint8 *buf, const int buf_size, uint8 *output) } /// @copydoc md5_interface::string() -void md5_string(const char *string, char *output) +static void md5_string(const char *string, char *output) { uint8 digest[16]; @@ -249,7 +249,7 @@ void md5_string(const char *string, char *output) } /// @copydoc md5_interface::salt(); -void md5_salt(int len, char *output) +static void md5_salt(int len, char *output) { int i; Assert_retv(len > 0); |