]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/md5.cc
* apt-pkg/acquire.cc:
[apt.git] / apt-pkg / contrib / md5.cc
index 2bd74515396326ebfe88d760257a559af1da3205..a095f8f0fbebf2ba71da0d0d3c0380c9d755e1d6 100644 (file)
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "apt-pkg/md5.h"
-#endif
-
 #include <apt-pkg/md5.h>
 #include <apt-pkg/strutl.h>
 
 #include <apt-pkg/md5.h>
 #include <apt-pkg/strutl.h>
 
@@ -48,6 +44,7 @@
 #include <inttypes.h>
 #include <config.h>
 #include <system.h>
 #include <inttypes.h>
 #include <config.h>
 #include <system.h>
+
                                                                        /*}}}*/
 
 // byteSwap - Swap bytes in a buffer                                   /*{{{*/
                                                                        /*}}}*/
 
 // byteSwap - Swap bytes in a buffer                                   /*{{{*/
@@ -299,8 +296,8 @@ bool MD5Summation::AddFD(int Fd,unsigned long Size)
    int Res = 0;
    while (Size != 0)
    {
    int Res = 0;
    while (Size != 0)
    {
-      Res = read(Fd,Buf,MIN(Size,sizeof(Buf)));
-      if (Res < 0 || (unsigned)Res != MIN(Size,sizeof(Buf)))
+      Res = read(Fd,Buf,min(Size,(unsigned long)sizeof(Buf)));
+      if (Res < 0 || (unsigned)Res != min(Size,(unsigned long)sizeof(Buf)))
         return false;
       Size -= Res;
       Add(Buf,Res);
         return false;
       Size -= Res;
       Add(Buf,Res);