summaryrefslogtreecommitdiff
path: root/libwardrobe/src/md5.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2009-08-04 15:24:23 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2009-08-04 15:24:23 +0200
commit3d7998a44299c69e7d721c4c5a20ddc32cec562b (patch)
tree1cfae4f8e9e95a5ceaab8cbea96fef2afd9b62bf /libwardrobe/src/md5.c
parent98071f0c542a89379c21ba69ea14a5c3f4b88b61 (diff)
downloadpianobar-3d7998a44299c69e7d721c4c5a20ddc32cec562b.tar.gz
pianobar-3d7998a44299c69e7d721c4c5a20ddc32cec562b.tar.bz2
pianobar-3d7998a44299c69e7d721c4c5a20ddc32cec562b.zip
Use "static" keyword for functions
Diffstat (limited to 'libwardrobe/src/md5.c')
-rw-r--r--libwardrobe/src/md5.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libwardrobe/src/md5.c b/libwardrobe/src/md5.c
index d41b5c9..4b8d038 100644
--- a/libwardrobe/src/md5.c
+++ b/libwardrobe/src/md5.c
@@ -51,9 +51,9 @@ typedef struct {
unsigned char buffer[64]; /* input buffer */
} MD5_CTX;
-void MD5Init (MD5_CTX *);
-void MD5Update (MD5_CTX *, unsigned char *, unsigned int);
-void MD5Final (unsigned char [16], MD5_CTX *);
+static void MD5Init (MD5_CTX *);
+static void MD5Update (MD5_CTX *, unsigned char *, unsigned int);
+static void MD5Final (unsigned char [16], MD5_CTX *);
static void MD5Transform (unsigned long int [4], unsigned char [64]);
static void Encode (unsigned char *, unsigned long int *, unsigned int);
@@ -101,7 +101,7 @@ Rotation is separate from addition to prevent recomputation.
/* MD5 initialization. Begins an MD5 operation, writing a new context.
* @param context
*/
-void MD5Init (MD5_CTX *context) {
+static void MD5Init (MD5_CTX *context) {
context->count[0] = context->count[1] = 0;
/* Load magic initialization constants. */
context->state[0] = 0x67452301;
@@ -117,7 +117,7 @@ void MD5Init (MD5_CTX *context) {
* @param input block
* @param length of input block
*/
-void MD5Update (MD5_CTX *context, unsigned char *input,
+static void MD5Update (MD5_CTX *context, unsigned char *input,
unsigned int inputLen) {
unsigned int i, index, partLen;
@@ -156,7 +156,7 @@ void MD5Update (MD5_CTX *context, unsigned char *input,
* @param message digest
* @param context
*/
-void MD5Final (unsigned char digest[16], MD5_CTX *context) {
+static void MD5Final (unsigned char digest[16], MD5_CTX *context) {
unsigned char bits[8];
unsigned int index, padLen;