From: Bruno Haible Date: Wed, 30 Apr 2025 11:11:01 +0000 (+0200) Subject: clean-temp: Fix link error (regression yesterday). X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=f47c5f2e21d0ccedb271b406e35b6963b23a64c4;p=gnulib.git clean-temp: Fix link error (regression yesterday). * lib/clean-temp.c: Include hashkey-string.h. (create_temp_dir): Use hashkey_string_* functions instead of clean_temp_string_*. * lib/clean-temp-private.h (clean_temp_string_equals, clean_temp_string_hash): Remove declarations. * modules/clean-temp (Depends-on): Add hashkey-string. --- diff --git a/ChangeLog b/ChangeLog index 810d6af489..4d3ba4d7b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2025-04-30 Bruno Haible + + clean-temp: Fix link error (regression yesterday). + * lib/clean-temp.c: Include hashkey-string.h. + (create_temp_dir): Use hashkey_string_* functions instead of + clean_temp_string_*. + * lib/clean-temp-private.h (clean_temp_string_equals, + clean_temp_string_hash): Remove declarations. + * modules/clean-temp (Depends-on): Add hashkey-string. + 2025-04-30 Bruno Haible hashcode-named-file: Fix mistake (regression yesterday). diff --git a/lib/clean-temp-private.h b/lib/clean-temp-private.h index f94c0d9192..468771b98e 100644 --- a/lib/clean-temp-private.h +++ b/lib/clean-temp-private.h @@ -68,9 +68,6 @@ struct closeable_fd #define descriptors clean_temp_descriptors extern gl_list_t /* */ volatile descriptors; -extern bool clean_temp_string_equals (const void *x1, const void *x2); -extern size_t clean_temp_string_hash (const void *x); - extern _GL_ASYNC_SAFE int clean_temp_asyncsafe_close (struct closeable_fd *element); extern void clean_temp_init_asyncsafe_close (void); diff --git a/lib/clean-temp.c b/lib/clean-temp.c index 5d85e4c848..f477e7719e 100644 --- a/lib/clean-temp.c +++ b/lib/clean-temp.c @@ -45,6 +45,7 @@ #include "xmalloca.h" #include "glthread/lock.h" #include "thread-optim.h" +#include "hashkey-string.h" #include "gl_xlist.h" #include "gl_linkedhash_list.h" #include "gl_linked_list.h" @@ -219,11 +220,11 @@ create_temp_dir (const char *prefix, const char *parentdir, tmpdir->cleanup_verbose = cleanup_verbose; tmpdir->subdirs = gl_list_create_empty (GL_LINKEDHASH_LIST, - clean_temp_string_equals, clean_temp_string_hash, + hashkey_string_equals, hashkey_string_hash, NULL, false); tmpdir->files = gl_list_create_empty (GL_LINKEDHASH_LIST, - clean_temp_string_equals, clean_temp_string_hash, + hashkey_string_equals, hashkey_string_hash, NULL, false); /* Create the temporary directory. */ diff --git a/modules/clean-temp b/modules/clean-temp index 1b0dfd349c..bb36caec99 100644 --- a/modules/clean-temp +++ b/modules/clean-temp @@ -24,6 +24,7 @@ rmdir xalloc xalloc-die xmalloca +hashkey-string linkedhash-list linked-list xlist