diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:27 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:27 +0000 |
commit | 6e52073fac7be205251b222f63cf2f61d1519364 (patch) | |
tree | d406a1676155eb0b1ff985701f45b7af9175ee6d /apt-pkg/contrib/mmap.h | |
parent | db0c350f8f028b0afa153fe91106e6ef03a34aa0 (diff) |
A few functions migrated around
Author: jgg
Date: 1999-08-02 03:07:47 GMT
A few functions migrated around
Diffstat (limited to 'apt-pkg/contrib/mmap.h')
-rw-r--r-- | apt-pkg/contrib/mmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/contrib/mmap.h b/apt-pkg/contrib/mmap.h index d086e51ab..6285620c9 100644 --- a/apt-pkg/contrib/mmap.h +++ b/apt-pkg/contrib/mmap.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: mmap.h,v 1.10 1999/07/15 03:15:49 jgg Exp $ +// $Id: mmap.h,v 1.11 1999/08/02 03:07:47 jgg Exp $ /* ###################################################################### MMap Class - Provides 'real' mmap or a faked mmap using read(). @@ -91,9 +91,9 @@ class DynamicMMap : public MMap // Allocation unsigned long RawAllocate(unsigned long Size,unsigned long Aln = 0); unsigned long Allocate(unsigned long ItemSize); - unsigned long WriteString(const char *String,unsigned long Len = 0); + unsigned long WriteString(const char *String,unsigned long Len = (unsigned long)-1); inline unsigned long WriteString(string S) {return WriteString(S.begin(),S.size());}; - void UsePools(Pool &P,unsigned int Count) {Pools = &P; PoolCount = Count;}; + void UsePools(Pool &P,unsigned int Count) {Pools = &P; PoolCount = Count;}; DynamicMMap(FileFd &F,unsigned long Flags,unsigned long WorkSpace = 2*1024*1024); DynamicMMap(unsigned long Flags,unsigned long WorkSpace = 2*1024*1024); |