Skip to content

Commit c2b4673

Browse files
committed
md5_{init,process,done}: make static
1 parent 1e5be8c commit c2b4673

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Modules/md5module.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ static void md5_compress(struct md5_state *md5, unsigned char *buf)
210210
Initialize the hash state
211211
@param sha1 The hash state you wish to initialize
212212
*/
213-
void md5_init(struct md5_state *md5)
213+
static void
214+
md5_init(struct md5_state *md5)
214215
{
215216
assert(md5 != NULL);
216217
md5->state[0] = 0x67452301UL;
@@ -227,8 +228,8 @@ void md5_init(struct md5_state *md5)
227228
@param in The data to hash
228229
@param inlen The length of the data (octets)
229230
*/
230-
void md5_process(struct md5_state *md5,
231-
const unsigned char *in, Py_ssize_t inlen)
231+
static void
232+
md5_process(struct md5_state *md5, const unsigned char *in, Py_ssize_t inlen)
232233
{
233234
Py_ssize_t n;
234235

@@ -262,7 +263,8 @@ void md5_process(struct md5_state *md5,
262263
@param sha1 The hash state
263264
@param out [out] The destination of the hash (16 bytes)
264265
*/
265-
void md5_done(struct md5_state *md5, unsigned char *out)
266+
static void
267+
md5_done(struct md5_state *md5, unsigned char *out)
266268
{
267269
int i;
268270

0 commit comments

Comments
 (0)