diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 17:00:01 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 17:00:01 +0000 |
commit | c53766c774f15b1763101f845e27feec7ac3b176 (patch) | |
tree | 61e2e88c9b81063925e030d870c3129380c13d40 /ftparchive | |
parent | 41b6caf4a956cd9d6032aafa87cc75ac7c94b6a5 (diff) | |
download | apt-c53766c774f15b1763101f845e27feec7ac3b176.tar.gz |
s/st_mtime/mtime/ on our local stat structure in apt-ft...
Author: doogie
Date: 2002-11-22 07:19:51 GMT
s/st_mtime/mtime/ on our local stat structure in apt-ftparchive, to support
compliation on platforms where st_mtime is a macro.
Diffstat (limited to 'ftparchive')
-rw-r--r-- | ftparchive/cachedb.cc | 10 | ||||
-rw-r--r-- | ftparchive/cachedb.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ftparchive/cachedb.cc b/ftparchive/cachedb.cc index cbcdfedc6..450a8a47c 100644 --- a/ftparchive/cachedb.cc +++ b/ftparchive/cachedb.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: cachedb.cc,v 1.3 2001/05/29 03:50:33 jgg Exp $ +// $Id: cachedb.cc,v 1.4 2002/11/22 07:19:51 doogie Exp $ /* ###################################################################### CacheDB @@ -91,16 +91,16 @@ bool CacheDB::SetFile(string FileName,struct stat St,FileFd *Fd) // Lookup the stat info and confirm the file is unchanged if (Get() == true) { - if (CurStat.st_mtime != htonl(St.st_mtime)) + if (CurStat.mtime != htonl(St.st_mtime)) { - CurStat.st_mtime = htonl(St.st_mtime); + CurStat.mtime = htonl(St.st_mtime); CurStat.Flags = 0; _error->Warning("File date has changed %s",FileName.c_str()); } } else { - CurStat.st_mtime = htonl(St.st_mtime); + CurStat.mtime = htonl(St.st_mtime); CurStat.Flags = 0; } CurStat.Flags = ntohl(CurStat.Flags); @@ -225,7 +225,7 @@ bool CacheDB::Finish() { // Optimize away some writes. if (CurStat.Flags == OldStat.Flags && - CurStat.st_mtime == OldStat.st_mtime) + CurStat.mtime == OldStat.st_mtime) return true; // Write the stat information diff --git a/ftparchive/cachedb.h b/ftparchive/cachedb.h index 89b1a2320..257af20fc 100644 --- a/ftparchive/cachedb.h +++ b/ftparchive/cachedb.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: cachedb.h,v 1.2 2001/02/20 07:03:18 jgg Exp $ +// $Id: cachedb.h,v 1.3 2002/11/22 07:19:51 doogie Exp $ /* ###################################################################### CacheDB @@ -69,7 +69,7 @@ class CacheDB enum FlagList {FlControl = (1<<0),FlMD5=(1<<1),FlContents=(1<<2)}; struct StatStore { - uint32_t st_mtime; + uint32_t mtime; uint32_t Flags; } CurStat; struct StatStore OldStat; |