X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/ddc1d8d08eaff6c71c6062654ddd9d8981799ae9..6321777b7bad1303a32b2d5691327adb74074e0a:/apt-pkg/contrib/cdromutl.cc diff --git a/apt-pkg/contrib/cdromutl.cc b/apt-pkg/contrib/cdromutl.cc index cd8a77aa0..dae6f0528 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.8 1999/07/26 17:46:08 jgg Exp $ +// $Id: cdromutl.cc,v 1.11 1999/12/10 23:40:29 jgg Exp $ /* ###################################################################### CDROM Utilities - Some functions to manipulate CDROM mounts. @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include #include @@ -163,14 +163,14 @@ bool IdentCdrom(string CD,string &Res,unsigned int Version) if (Version <= 1) { - sprintf(S,"%lu",Dir->d_ino); + sprintf(S,"%lu",(unsigned long)Dir->d_ino); } else { struct stat Buf; if (stat(Dir->d_name,&Buf) != 0) continue; - sprintf(S,"%lu",Buf.st_mtime); + sprintf(S,"%lu",(unsigned long)Buf.st_mtime); } Hash.Add(S); @@ -183,8 +183,8 @@ bool IdentCdrom(string CD,string &Res,unsigned int Version) // Some stats from the fsys if (_config->FindB("Debug::identcdrom",false) == false) { - struct statfs Buf; - if (statfs(CD.c_str(),&Buf) != 0) + struct statvfs Buf; + if (statvfs(CD.c_str(),&Buf) != 0) return _error->Errno("statfs","Failed to stat the cdrom"); // We use a kilobyte block size to advoid overflow