mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-04-17 06:01:20 +00:00
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 <adam@adam-barratt.org.uk>
This commit is contained in:
parent
ef71f0e33a
commit
e0a447074c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user