diff options
author | Chris Wilson <qris@users.noreply.github.com> | 2015-09-22 23:09:39 +0100 |
---|---|---|
committer | Chris Wilson <qris@users.noreply.github.com> | 2015-09-22 23:09:39 +0100 |
commit | d48c4cff494a87fe7cea564920462b7051e1132d (patch) | |
tree | 68f731a337a716006993bae93a97882feb2b0790 /lib/backupstore/BackupStoreDirectory.cpp | |
parent | a39eee6f6c2227d5b260013db93b41d883214665 (diff) | |
parent | c6606ce50c1096508ac028ae967c56968c15b603 (diff) |
Merge pull request #5 from boxbackup/fix_arm_struct_packing
Add a test for reading and writing BackupStoreDirectory binary data
Diffstat (limited to 'lib/backupstore/BackupStoreDirectory.cpp')
-rw-r--r-- | lib/backupstore/BackupStoreDirectory.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/backupstore/BackupStoreDirectory.cpp b/lib/backupstore/BackupStoreDirectory.cpp index 332eca7a..d158cdd4 100644 --- a/lib/backupstore/BackupStoreDirectory.cpp +++ b/lib/backupstore/BackupStoreDirectory.cpp @@ -1,7 +1,7 @@ // -------------------------------------------------------------------------- // // File -// Name: BackupStoreDirectory.h +// Name: BackupStoreDirectory.cpp // Purpose: Representation of a backup directory // Created: 2003/08/26 // @@ -36,11 +36,6 @@ typedef struct // Then a StreamableMemBlock for attributes } dir_StreamFormat; -typedef enum -{ - Option_DependencyInfoPresent = 1 -} dir_StreamFormatOptions; - typedef struct { uint64_t mModificationTime; @@ -172,7 +167,7 @@ void BackupStoreDirectory::ReadFromStream(IOStream &rStream, int Timeout) int count = ntohl(hdr.mNumEntries); // Clear existing list - for(std::vector<Entry*>::iterator i = mEntries.begin(); + for(std::vector<Entry*>::iterator i = mEntries.begin(); i != mEntries.end(); i++) { delete (*i); |