From 5498c6c4a1c5b195e452bc3a7d42d7c632ba8112 Mon Sep 17 00:00:00 2001 From: "Adam D. Barratt" Date: Mon, 9 May 2011 15:06:36 +0000 Subject: [PATCH] lib/dpkg.c: Also use SIZEOFHASHMAP for the sources hashes Commit 7bba1173e02583a0dd669bde49fb91c0ea46f243 increased the size of the binary package and virtual packages hash and introduced the constant SIZEOFHASHMAP to ease further changes. Apply the same change to the source package and source note hashes Signed-off-by: Adam D. Barratt --- lib/dpkg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dpkg.c b/lib/dpkg.c index da274bd..ee987bb 100644 --- a/lib/dpkg.c +++ b/lib/dpkg.c @@ -1347,7 +1347,7 @@ int checkinstallable(dpkg_packages *pkgs, collpackagelist *instoneof) { /******************/ -HASH_IMPL(sourcetbl, char *, dpkg_source *, 14, strhash, strcmp, +HASH_IMPL(sourcetbl, char *, dpkg_source *, SIZEOFHASHMAP, strhash, strcmp, KEEP(char*), free_source); static dpkg_sources *read_sources_file(char *filename, int n_arches) { @@ -1561,7 +1561,7 @@ void write_directory(char *dir, dpkg_sources *srcs) { /*********************/ -HASH_IMPL(sourcenotetbl, char *, dpkg_source_note *, 14, strhash, strcmp, +HASH_IMPL(sourcenotetbl, char *, dpkg_source_note *, SIZEOFHASHMAP, strhash, strcmp, KEEP(char*), free_source_note); dpkg_source_note *new_source_note(dpkg_source *src, int n_arches) {