summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-02-13 11:37:22 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-02-13 11:37:22 +0100
commit005428387832e79e314bb8f2605f7e6c69708d14 (patch)
tree9050f687a150b6f6071398e12004f8c19ff4bc8e /apt-pkg
parent26b37f959350860a0c1d5ef9651efa0bf3640cb5 (diff)
update size of dynamic MMap as we write in from the outside
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/mmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/contrib/mmap.h b/apt-pkg/contrib/mmap.h
index 5ca951204..e9baa9339 100644
--- a/apt-pkg/contrib/mmap.h
+++ b/apt-pkg/contrib/mmap.h
@@ -61,6 +61,7 @@ class MMap
inline operator void *() {return Base;};
inline void *Data() {return Base;};
inline unsigned long Size() {return iSize;};
+ inline void AddSize(unsigned long const size) {iSize += size;};
// File manipulators
bool Sync();