* gnulib-local/lib/mem-hash-map.h (hash_init): Fix comment.
* gnulib-local/lib/mem-hash-map.c (hash_init): Likewise.
* gettext-tools/src/msgl-fsearch.c (message_fuzzy_index_alloc): Don't test the
return value of hash_init.
findex->iterator = po_charset_character_iterator (canon_charset);
/* Setup hash table. */
- if (hash_init (&findex->gram4, 10 * count) < 0)
- xalloc_die ();
+ hash_init (&findex->gram4, 10 * count);
for (j = 0; j < count; j++)
{
message_ty *mp = mlp->item[j];
/* hash - implement simple hashing table where the keys are memory blocks.
- Copyright (C) 1994-1995, 2000-2006, 2018, 2020 Free Software Foundation, Inc.
+ Copyright (C) 1994-1995, 2000-2006, 2018, 2020, 2023 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, October 1994.
This program is free software: you can redistribute it and/or modify
/* Initialize a hash table. INIT_SIZE > 1 is the initial number of available
entries.
- Return 0 upon successful completion, -1 upon memory allocation error. */
+ Return 0 always. */
int
hash_init (hash_table *htab, unsigned long int init_size)
{
-/* Copyright (C) 1995, 2000-2003, 2005-2006 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 2000-2003, 2005-2006, 2023 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
/* Initialize a hash table. INIT_SIZE > 1 is the initial number of available
entries.
- Return 0 upon successful completion, -1 upon memory allocation error. */
+ Return 0 always. */
extern int hash_init (hash_table *htab, unsigned long int init_size);
/* Delete a hash table's contents.