[Python-checkins] cpython: sha1_{init,process,done}: make static

matthias.klose python-checkins at python.org
Thu Jun 21 17:06:51 CEST 2012


http://hg.python.org/cpython/rev/02a4542efbb5
changeset:   77534:02a4542efbb5
user:        doko at ubuntu.com
date:        Thu Jun 21 17:05:50 2012 +0200
summary:
  sha1_{init,process,done}: make static

files:
  Modules/sha1module.c |  9 ++++++---
  1 files changed, 6 insertions(+), 3 deletions(-)


diff --git a/Modules/sha1module.c b/Modules/sha1module.c
--- a/Modules/sha1module.c
+++ b/Modules/sha1module.c
@@ -184,7 +184,8 @@
    Initialize the hash state
    @param sha1   The hash state you wish to initialize
 */
-void sha1_init(struct sha1_state *sha1)
+static void
+sha1_init(struct sha1_state *sha1)
 {
    assert(sha1 != NULL);
    sha1->state[0] = 0x67452301UL;
@@ -202,7 +203,8 @@
    @param in     The data to hash
    @param inlen  The length of the data (octets)
 */
-void sha1_process(struct sha1_state *sha1,
+static void
+sha1_process(struct sha1_state *sha1,
                   const unsigned char *in, Py_ssize_t inlen)
 {
     Py_ssize_t n;
@@ -237,7 +239,8 @@
    @param sha1  The hash state
    @param out [out] The destination of the hash (20 bytes)
 */
-void sha1_done(struct sha1_state *sha1, unsigned char *out)
+static void
+sha1_done(struct sha1_state *sha1, unsigned char *out)
 {
     int i;
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list