1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-29 16:40:31 -04:00
ports/devel/tcl-trf/files/patch-crc
Mikhail Teterin 52b76e1327 Resurrect this port from the Attic based on the new version from the
author. As before, we modify the author's code to use either OpenSSL's
-lcrypto or BSD's -lmd /directly/ instead of compiling the bundled
definitions digests.

We also link with -lz and -lbz2 instead of dlopen-ing them at run-time.
2009-07-13 05:30:15 +00:00

25 lines
879 B
Text

--- 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;