summaryrefslogtreecommitdiffstats
path: root/Modules/md5module.c
diff options
context:
space:
mode:
authordoko@ubuntu.com <doko@ubuntu.com>2012-06-21 15:26:06 (GMT)
committerdoko@ubuntu.com <doko@ubuntu.com>2012-06-21 15:26:06 (GMT)
commitc2b4673ffe264f2b1e8ea3375a0860f2326b47d9 (patch)
tree125543a318c883f10e35a0a7e582bdfc88be4dcb /Modules/md5module.c
parent1e5be8cfb509cff331365be8ad780820f729ccb2 (diff)
downloadcpython-c2b4673ffe264f2b1e8ea3375a0860f2326b47d9.zip
cpython-c2b4673ffe264f2b1e8ea3375a0860f2326b47d9.tar.gz
cpython-c2b4673ffe264f2b1e8ea3375a0860f2326b47d9.tar.bz2
md5_{init,process,done}: make static
Diffstat (limited to 'Modules/md5module.c')
-rw-r--r--Modules/md5module.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/Modules/md5module.c b/Modules/md5module.c
index ee44c48..e2681a8 100644
--- a/Modules/md5module.c
+++ b/Modules/md5module.c
@@ -210,7 +210,8 @@ static void md5_compress(struct md5_state *md5, unsigned char *buf)
Initialize the hash state
@param sha1 The hash state you wish to initialize
*/
-void md5_init(struct md5_state *md5)
+static void
+md5_init(struct md5_state *md5)
{
assert(md5 != NULL);
md5->state[0] = 0x67452301UL;
@@ -227,8 +228,8 @@ void md5_init(struct md5_state *md5)
@param in The data to hash
@param inlen The length of the data (octets)
*/
-void md5_process(struct md5_state *md5,
- const unsigned char *in, Py_ssize_t inlen)
+static void
+md5_process(struct md5_state *md5, const unsigned char *in, Py_ssize_t inlen)
{
Py_ssize_t n;
@@ -262,7 +263,8 @@ void md5_process(struct md5_state *md5,
@param sha1 The hash state
@param out [out] The destination of the hash (16 bytes)
*/
-void md5_done(struct md5_state *md5, unsigned char *out)
+static void
+md5_done(struct md5_state *md5, unsigned char *out)
{
int i;