summaryrefslogtreecommitdiff
path: root/lib/backupstore
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2013-08-22 00:24:24 +0000
committerChris Wilson <chris+github@qwirx.com>2013-08-22 00:24:24 +0000
commit576e90ce3f50e1b9de2bfd6d88736a16604ae552 (patch)
tree88795e6d3f28689cdb91837d9899145e8b44b848 /lib/backupstore
parent53c35fb1774e0f817496297f3599bf5e5f773298 (diff)
Improve variable names and comments.
Makes the source code more readable.
Diffstat (limited to 'lib/backupstore')
-rw-r--r--lib/backupstore/BackupCommands.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/backupstore/BackupCommands.cpp b/lib/backupstore/BackupCommands.cpp
index 1f4244f6..318ce55a 100644
--- a/lib/backupstore/BackupCommands.cpp
+++ b/lib/backupstore/BackupCommands.cpp
@@ -249,13 +249,13 @@ std::auto_ptr<BackupProtocolMessage> BackupProtocolStoreFile::DoCommand(BackupPr
}
// A stream follows, which contains the file
- std::auto_ptr<IOStream> dirstream(rProtocol.ReceiveStream());
+ std::auto_ptr<IOStream> filestream(rProtocol.ReceiveStream());
// Ask the context to store it
int64_t id = 0;
try
{
- id = rContext.AddFile(*dirstream, mDirectoryObjectID,
+ id = rContext.AddFile(*filestream, mDirectoryObjectID,
mModificationTime, mAttributesHash, mDiffFromFileID,
mFilename,
true /* mark files with same name as old versions */);
@@ -276,7 +276,7 @@ std::auto_ptr<BackupProtocolMessage> BackupProtocolStoreFile::DoCommand(BackupPr
}
}
- // Tell the caller what the file was
+ // Tell the caller what the file ID was
return std::auto_ptr<BackupProtocolMessage>(new BackupProtocolSuccess(id));
}