]> git.saurik.com Git - apt.git/commitdiff
Fixed sparc compile warning
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:53:38 +0000 (16:53 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:53:38 +0000 (16:53 +0000)
Author: jgg
Date: 1999-04-20 05:11:17 GMT
Fixed sparc compile warning

apt-pkg/contrib/cdromutl.cc
cmdline/apt-get.cc

index a12c9d790bd3ad80e9e3ece9a269ca724c220094..d0d810c5d05e5b3408ba0352aaaac1ea8d549b9d 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: cdromutl.cc,v 1.4 1999/04/20 05:02:09 jgg Exp $
+// $Id: cdromutl.cc,v 1.5 1999/04/20 05:11:17 jgg Exp $
 /* ######################################################################
    
    CDROM Utilities - Some functions to manipulate CDROM mounts.
@@ -197,8 +197,8 @@ bool IdentCdrom(string CD,string &Res)
       return _error->Errno("statfs","Failed to stat the cdrom");
 
    // We use a kilobyte block size to advoid overflow
-   sprintf(S,"%u %u",Buf.f_blocks*(Buf.f_bsize/1024),
-          Buf.f_bfree*(Buf.f_bsize/1024));
+   sprintf(S,"%lu %lu",(long)(Buf.f_blocks*(Buf.f_bsize/1024)),
+          (long)(Buf.f_bfree*(Buf.f_bsize/1024)));
    Hash.Add(S);
    
    Res = Hash.Result().Value();
index 41d089d76ac29d985d512fe30e7325bd82fd07b6..0228bb3954f82ca1cd1784de53081d1b892c0d5b 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-get.cc,v 1.55 1999/04/20 05:02:09 jgg Exp $
+// $Id: apt-get.cc,v 1.56 1999/04/20 05:14:55 jgg Exp $
 /* ######################################################################
    
    apt-get - Cover for dpkg
@@ -51,6 +51,7 @@
 #include <signal.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <errno.h>
 #include <sys/wait.h>
                                                                        /*}}}*/