projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
releasing package apt version 1.0.5
[apt.git]
/
apt-pkg
/
contrib
/
hashes.cc
diff --git
a/apt-pkg/contrib/hashes.cc
b/apt-pkg/contrib/hashes.cc
index 5efafa511501af2fd34416eb1dbb1eeeb848980e..15f83615d7e3ccfba2a83d8ea1c37faa41b47a22 100644
(file)
--- a/
apt-pkg/contrib/hashes.cc
+++ b/
apt-pkg/contrib/hashes.cc
@@
-116,7
+116,7
@@
const char** HashString::SupportedHashes()
return _SupportedHashes;
}
return _SupportedHashes;
}
-bool HashString::empty() const
+
APT_PURE
bool HashString::empty() const
{
return (Type.empty() || Hash.empty());
}
{
return (Type.empty() || Hash.empty());
}
@@
-133,7
+133,7
@@
bool Hashes::AddFD(int const Fd,unsigned long long Size, bool const addMD5,
bool const addSHA1, bool const addSHA256, bool const addSHA512)
{
unsigned char Buf[64*64];
bool const addSHA1, bool const addSHA256, bool const addSHA512)
{
unsigned char Buf[64*64];
- bool const ToEOF = (Size ==
0
);
+ bool const ToEOF = (Size ==
UntilEOF
);
while (Size != 0 || ToEOF)
{
unsigned long long n = sizeof(Buf);
while (Size != 0 || ToEOF)
{
unsigned long long n = sizeof(Buf);