Re: Bug#50093: apt does not build on m68k/potato
On Mon, 15 Nov 1999, Christian T. Steigies wrote:
> Thanks for the patch, but thats not enough it seems:
Wait wait, try this one, now that kubrick is working properly again I know
this works.
Jason
Index: md5.cc
===================================================================
RCS file: /cvs/deity/apt/apt-pkg/contrib/md5.cc,v
retrieving revision 1.6
retrieving revision 1.10
diff -u -r1.6 -r1.10
--- md5.cc 1999/10/31 06:32:28 1.6
+++ md5.cc 1999/11/16 03:10:56 1.10
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: md5.cc,v 1.6 1999/10/31 06:32:28 jgg Exp $
+// $Id: md5.cc,v 1.10 1999/11/16 03:10:56 jgg Exp $
/* ######################################################################
MD5Sum - MD5 Message Digest Algorithm.
@@ -47,19 +47,20 @@
#include <unistd.h>
#include <netinet/in.h> // For htonl
#include <inttypes.h>
+#include <config.h>
/*}}}*/
// byteSwap - Swap bytes in a buffer /*{{{*/
// ---------------------------------------------------------------------
/* Swap n 32 bit longs in given buffer */
#ifdef WORDS_BIGENDIAN
-static void byteSwap(uint8_t *buf, unsigned words)
+static void byteSwap(uint32_t *buf, unsigned words)
{
uint8_t *p = (uint8_t *)buf;
do
{
- *buf++ = (UINT32)((unsigned)p[3] << 8 | p[2]) << 16 |
+ *buf++ = (uint32_t)((unsigned)p[3] << 8 | p[2]) << 16 |
((unsigned)p[1] << 8 | p[0]);
p += 4;
} while (--words);
Reply to: