From 877552c07fce7f76bdf582d5b2d3a9d44c6876a9 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Mon, 21 Dec 1998 12:38:53 +0000 Subject: [PATCH] Adjust some hash-related parameters. --- charset.c | 6 +++--- imap.c | 4 ++-- mbox.c | 4 ++-- mh.c | 2 +- mx.c | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/charset.c b/charset.c index 013b4d71..40d12e5b 100644 --- a/charset.c +++ b/charset.c @@ -116,7 +116,7 @@ static HASH *load_charset_aliases(void) if(!(fp = fopen(buffer, "r"))) return NULL; - charset_aliases = hash_create(256); + charset_aliases = hash_create(127); while(fgets(buffer, sizeof(buffer), fp)) { @@ -137,8 +137,8 @@ static void init_charsets() { if(Charsets) return; - Charsets = hash_create(128); - Translations = hash_create(256); + Charsets = hash_create(127); + Translations = hash_create(127); CharsetAliases = load_charset_aliases(); } diff --git a/imap.c b/imap.c index d0cab21b..b7a56155 100644 --- a/imap.c +++ b/imap.c @@ -617,8 +617,8 @@ static int imap_reopen_mailbox (CONTEXT *ctx, int *index_hint) ctx->unread = 0; ctx->flagged = 0; ctx->changed = 0; - ctx->id_hash = hash_create (257); - ctx->subj_hash = hash_create (257); + ctx->id_hash = hash_create (1031); + ctx->subj_hash = hash_create (1031); mutt_message (_("Reopening mailbox..."), CTX_DATA->mailbox); imap_quote_string (buf, sizeof(buf), CTX_DATA->mailbox); diff --git a/mbox.c b/mbox.c index 9a528f39..ea4c88bb 100644 --- a/mbox.c +++ b/mbox.c @@ -1047,8 +1047,8 @@ int mutt_reopen_mailbox (CONTEXT *ctx, int *index_hint) ctx->unread = 0; ctx->flagged = 0; ctx->changed = 0; - ctx->id_hash = hash_create (257); - ctx->subj_hash = hash_create (257); + ctx->id_hash = hash_create (1031); + ctx->subj_hash = hash_create (1031); switch (ctx->magic) { diff --git a/mh.c b/mh.c index 08057903..6cf5625a 100644 --- a/mh.c +++ b/mh.c @@ -680,7 +680,7 @@ int mh_check_mailbox(CONTEXT *ctx, int *index_hint) /* check for modifications and adjust flags */ - fnames = hash_create(1024); + fnames = hash_create (1031); for(p = md; p; p = p->next) { diff --git a/mx.c b/mx.c index e74a8cad..f37dae1c 100644 --- a/mx.c +++ b/mx.c @@ -582,8 +582,8 @@ CONTEXT *mx_open_mailbox (const char *path, int flags, CONTEXT *pctx) set_option (OPTFORCEREFRESH); /* create hash tables */ - ctx->id_hash = hash_create (257); - ctx->subj_hash = hash_create (257); + ctx->id_hash = hash_create (1031); + ctx->subj_hash = hash_create (1031); if (!ctx->quiet) mutt_message (_("Reading %s..."), ctx->path); -- 2.40.0