]> git.saurik.com Git - apt.git/commitdiff
Fixed sign conversion
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:54:37 +0000 (16:54 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:54:37 +0000 (16:54 +0000)
Author: jgg
Date: 1999-08-28 01:49:07 GMT
Fixed sign conversion

apt-pkg/acquire-worker.cc
apt-pkg/contrib/mmap.cc
apt-pkg/contrib/strutl.cc

index d5b4541a3c86addea0399d59f609897a44b1931d..972ab2455027de38afa06f40dad1f11fcaa3ac02 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-worker.cc,v 1.26 1999/08/03 05:19:41 jgg Exp $
+// $Id: acquire-worker.cc,v 1.27 1999/08/28 01:49:56 jgg Exp $
 /* ######################################################################
 
    Acquire Worker 
@@ -249,7 +249,7 @@ bool pkgAcquire::Worker::RunMessages()
            pkgAcquire::ItemDesc Desc = *Itm;
            OwnerQ->ItemDone(Itm);
            if (TotalSize != 0 && 
-               atoi(LookupTag(Message,"Size","0").c_str()) != TotalSize)
+               (unsigned)atoi(LookupTag(Message,"Size","0").c_str()) != TotalSize)
               _error->Warning("Bizzar Error - File size is not what the server reported %s %u",
                               LookupTag(Message,"Size","0").c_str(),TotalSize);
 
index ef6b96d6ac2a78b262035cff220345fb24b049a2..b5c1320e62207553f070f593c8bea07eda7ebad1 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: mmap.cc,v 1.17 1999/08/02 03:07:47 jgg Exp $
+// $Id: mmap.cc,v 1.18 1999/08/28 01:49:07 jgg Exp $
 /* ######################################################################
    
    MMap Class - Provides 'real' mmap or a faked mmap using read().
@@ -35,6 +35,8 @@
 #include <fcntl.h>
                                                                        /*}}}*/
 
+#undef _POSIX_SYNCHRONIZED_IO   
+
 // MMap::MMap - Constructor                                            /*{{{*/
 // ---------------------------------------------------------------------
 /* */
index 17a23709b522c89697f22a5dd855b5e4d43ce594..1af8c4304c402771d7b6d672cd87f64dff54a775 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: strutl.cc,v 1.28 1999/08/02 03:07:48 jgg Exp $
+// $Id: strutl.cc,v 1.29 1999/08/28 01:49:08 jgg Exp $
 /* ######################################################################
 
    String Util - Some usefull string functions.
@@ -713,7 +713,7 @@ static int HexDigit(int c)
 bool Hex2Num(const char *Start,const char *End,unsigned char *Num,
             unsigned int Length)
 {
-   if (End - Start != Length*2)
+   if (End - Start != (signed)(Length*2))
       return false;
    
    // Convert each digit. We store it in the same order as the string