summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:53:38 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:53:38 +0000
commitd6e79b75582b25065e2e1e843191c93d1f56ec3a (patch)
treedb4d8659e5e3d04f94b84dd13897fac48a00b088
parent54676e1a82f400e37879bc931b6db0c13b8ebb3f (diff)
Fixed sparc compile warning
Author: jgg Date: 1999-04-20 05:11:17 GMT Fixed sparc compile warning
-rw-r--r--apt-pkg/contrib/cdromutl.cc6
-rw-r--r--cmdline/apt-get.cc3
2 files changed, 5 insertions, 4 deletions
diff --git a/apt-pkg/contrib/cdromutl.cc b/apt-pkg/contrib/cdromutl.cc
index a12c9d790..d0d810c5d 100644
--- a/apt-pkg/contrib/cdromutl.cc
+++ b/apt-pkg/contrib/cdromutl.cc
@@ -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();
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 41d089d76..0228bb395 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -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>
/*}}}*/