]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Port to recent Gnulib hash_remove
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Apr 2025 21:05:59 +0000 (14:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Apr 2025 21:05:59 +0000 (14:05 -0700)
Problem reported by Bruno Haible in:
https://lists.gnu.org/r/bug-tar/2025-04/msg00003.html
* src/incremen.c (remove_directory): hash_delete → hash_remove.

src/incremen.c

index a237940332788d0be6a7b1bb7e7ae3640f896d23..92ef9c6287ac0f3dd76b816a5e7d855ec013cc40 100644 (file)
@@ -428,7 +428,7 @@ void
 remove_directory (const char *caname)
 {
   struct directory *dir = make_directory (caname, xstrdup (caname));
-  struct directory *ret = hash_delete (directory_table, dir);
+  struct directory *ret = hash_remove (directory_table, dir);
   if (ret)
     free_directory (ret);
   free_directory (dir);