summaryrefslogtreecommitdiff
path: root/methods/copy.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-12-17 23:53:31 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-12-17 23:53:31 +0100
commit109eb1511d0cdfa4af3196105cada30bcbb77bc8 (patch)
treec07319a3ddc9a6484561d1cea918aaecade4a7e9 /methods/copy.cc
parent1abbc47c045770476f5f9a57c58989d13290d51b (diff)
try to avoid direct usage of .Fd() if possible and do read()s and co
on the FileFd instead
Diffstat (limited to 'methods/copy.cc')
-rw-r--r--methods/copy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/copy.cc b/methods/copy.cc
index f8d58e479..e81d0022b 100644
--- a/methods/copy.cc
+++ b/methods/copy.cc
@@ -85,7 +85,7 @@ bool CopyMethod::Fetch(FetchItem *Itm)
Hashes Hash;
FileFd Fd(Res.Filename, FileFd::ReadOnly);
- Hash.AddFD(Fd.Fd(), Fd.Size());
+ Hash.AddFD(Fd);
Res.TakeHashes(Hash);
URIDone(Res);