summaryrefslogtreecommitdiff
path: root/apt-pkg/edsp
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2020-01-17 14:34:45 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2020-02-18 13:39:26 +0100
commit8c10048dce06ee0f160c86a6df07f0e6d2c34242 (patch)
tree7d18b03a24c3ce41c76904cd6ccb8430e7638dc4 /apt-pkg/edsp
parent62683ed6459e874119f3346d8be66b85e8a90533 (diff)
Use a 32-bit djb VersionHash instead of CRC-16
Diffstat (limited to 'apt-pkg/edsp')
-rw-r--r--apt-pkg/edsp/edsplistparser.cc2
-rw-r--r--apt-pkg/edsp/edsplistparser.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/edsp/edsplistparser.cc b/apt-pkg/edsp/edsplistparser.cc
index 96de2b997..45abdbc61 100644
--- a/apt-pkg/edsp/edsplistparser.cc
+++ b/apt-pkg/edsp/edsplistparser.cc
@@ -59,7 +59,7 @@ APT::StringView edspLikeListParser::Description_md5()
}
/*}}}*/
// ListParser::VersionHash - Compute a unique hash for this version /*{{{*/
-unsigned short edspLikeListParser::VersionHash()
+uint32_t edspLikeListParser::VersionHash()
{
if (Section.Exists("APT-Hash") == true)
return Section.FindI("APT-Hash");
diff --git a/apt-pkg/edsp/edsplistparser.h b/apt-pkg/edsp/edsplistparser.h
index 2c136026d..41bfd1f79 100644
--- a/apt-pkg/edsp/edsplistparser.h
+++ b/apt-pkg/edsp/edsplistparser.h
@@ -27,7 +27,7 @@ class APT_HIDDEN edspLikeListParser : public debListParser
virtual bool NewVersion(pkgCache::VerIterator &Ver) APT_OVERRIDE;
virtual std::vector<std::string> AvailableDescriptionLanguages() APT_OVERRIDE;
virtual APT::StringView Description_md5() APT_OVERRIDE;
- virtual unsigned short VersionHash() APT_OVERRIDE;
+ virtual uint32_t VersionHash() APT_OVERRIDE;
explicit edspLikeListParser(FileFd *File);
virtual ~edspLikeListParser();