summaryrefslogtreecommitdiff
path: root/devel/tcl-trf/files/patch-crc
blob: bd6d8112d226e939fe64513edc48b6ae60fd8b4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- generic/crc.c	2009-06-18 00:54:43.000000000 -0400
+++ generic/crc.c	2009-07-12 23:44:21.000000000 -0400
@@ -48,6 +48,6 @@
 static void MDcrc_Start     _ANSI_ARGS_ ((VOID* context));
 static void MDcrc_Update    _ANSI_ARGS_ ((VOID* context, unsigned int character));
-static void MDcrc_UpdateBuf _ANSI_ARGS_ ((VOID* context, unsigned char* buffer, int bufLen));
-static void MDcrc_Final     _ANSI_ARGS_ ((VOID* context, VOID* digest));
+static void MDcrc_UpdateBuf _ANSI_ARGS_ ((VOID* context, unsigned char* buffer, size_t bufLen));
+static void MDcrc_Final     _ANSI_ARGS_ ((VOID* digest, VOID* context));
 
 /*
@@ -193,5 +193,5 @@
 VOID* context;
 unsigned char* buffer;
-int   bufLen;
+size_t   bufLen;
 {
   /* call md specific update here */
@@ -234,5 +234,5 @@
 
 static void
-MDcrc_Final (context, digest)
+MDcrc_Final (digest, context)
 VOID* context;
 VOID* digest;