]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/crc-16.cc
add missing "free(buffer) for allocated buffer
[apt.git] / apt-pkg / contrib / crc-16.cc
index 52a551802c37e63d8e879970cbb5e564ea06202b..4058821f9f9ea11be10d0ebf1cccf35a0703f17a 100644 (file)
@@ -15,9 +15,7 @@
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/crc-16.h"
-#endif
+#include <config.h>
 
 #include <apt-pkg/crc-16.h>
                                                                        /*}}}*/
@@ -67,7 +65,7 @@ static unsigned short const crc16_table[256] =
 /* Recompute the FCS with one more character appended. */
 #define CalcFCS(fcs, c) (((fcs) >> 8) ^ crc16_table[((fcs) ^ (c)) & 0xff])
 unsigned short AddCRC16(unsigned short fcs, void const *Buf,
-                       unsigned long len) 
+                       unsigned long long len)
 {
    unsigned char const *buf = (unsigned char const *)Buf;
    while (len--)