]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: update gnulib submodule to latest
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Oct 2020 17:47:32 +0000 (10:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Oct 2020 17:58:53 +0000 (10:58 -0700)
* gl/lib/randperm.c, src/cp-hash.c, src/ls.c, src/sort.c, src/tail.c:
Change all instaces of hash_delete to hash_remove to accommodate
change to Gnulib API.

gl/lib/randperm.c
gnulib
src/cp-hash.c
src/ls.c
src/sort.c
src/tail.c

index e9f46cd8cd9cb93f30726976268250fa77de8cf4..400c7b33b4b1ba19d72806c8add1f41197883b7b 100644 (file)
@@ -119,8 +119,8 @@ sparse_new (size_t size_hint)
 static void
 sparse_swap (sparse_map *sv, size_t* v, size_t i, size_t j)
 {
-  struct sparse_ent_ *v1 = hash_delete (sv, &(struct sparse_ent_) {i,0});
-  struct sparse_ent_ *v2 = hash_delete (sv, &(struct sparse_ent_) {j,0});
+  struct sparse_ent_ *v1 = hash_remove (sv, &(struct sparse_ent_) {i,0});
+  struct sparse_ent_ *v2 = hash_remove (sv, &(struct sparse_ent_) {j,0});
 
   /* FIXME: reduce the frequency of these mallocs.  */
   if (!v1)
diff --git a/gnulib b/gnulib
index 0b93877fc4bdcd84b78805e5917e4ab94684b9bc..2d386f229aba9ecda85736b931e2964d7922d90e 160000 (submodule)
--- a/gnulib
+++ b/gnulib
@@ -1 +1 @@
-Subproject commit 0b93877fc4bdcd84b78805e5917e4ab94684b9bc
+Subproject commit 2d386f229aba9ecda85736b931e2964d7922d90e
index 10ab2cd05c3070ba12f900f7bc3851fe82d17bc5..3390716675094815a947884e3bab2104604db5da 100644 (file)
@@ -88,7 +88,7 @@ forget_created (ino_t ino, dev_t dev)
   probe.st_dev = dev;
   probe.name = NULL;
 
-  ent = hash_delete (src_to_dest, &probe);
+  ent = hash_remove (src_to_dest, &probe);
   if (ent)
     src_to_dest_free (ent);
 }
index a69f9d6e4ea6f874a2e9af52a8c39bec6a17ad76..1f6afbc0eb0ab0b317539e85cda789f94338ec5c 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -1766,7 +1766,7 @@ main (int argc, char **argv)
                  Use its dev/ino numbers to remove the corresponding
                  entry from the active_dir_set hash table.  */
               struct dev_ino di = dev_ino_pop ();
-              struct dev_ino *found = hash_delete (active_dir_set, &di);
+              struct dev_ino *found = hash_remove (active_dir_set, &di);
               /* ASSERT_MATCHING_DEV_INO (thispend->realname, di); */
               assert (found);
               dev_ino_free (found);
index 242bf66d19434bf51c2bfa4002115b0f6379b56d..0163ba18ada4637fe6cd4d2386e33f8cce427182 100644 (file)
@@ -757,7 +757,7 @@ delete_proc (pid_t pid)
   struct tempnode test;
 
   test.pid = pid;
-  struct tempnode *node = hash_delete (proctab, &test);
+  struct tempnode *node = hash_remove (proctab, &test);
   if (! node)
     return false;
   node->state = REAPED;
index 18e52b1bfacf2b3a6aeed985e93a4ad556eb219a..016690b6eece0f5df8bc7b05a001d6c17ac89234 100644 (file)
@@ -1771,7 +1771,7 @@ tail_forever_inotify (int wd, struct File_spec *f, size_t n_files,
               if (0 <= fspec->wd)
                 {
                   inotify_rm_watch (wd, fspec->wd);
-                  hash_delete (wd_to_name, fspec);
+                  hash_remove (wd_to_name, fspec);
                 }
 
               fspec->wd = new_wd;
@@ -1782,7 +1782,7 @@ tail_forever_inotify (int wd, struct File_spec *f, size_t n_files,
               /* If the file was moved then inotify will use the source file wd
                 for the destination file.  Make sure the key is not present in
                 the table.  */
-              struct File_spec *prev = hash_delete (wd_to_name, fspec);
+              struct File_spec *prev = hash_remove (wd_to_name, fspec);
               if (prev && prev != fspec)
                 {
                   if (follow_mode == Follow_name)
@@ -1817,7 +1817,7 @@ tail_forever_inotify (int wd, struct File_spec *f, size_t n_files,
           if (ev->mask & IN_DELETE_SELF)
             {
               inotify_rm_watch (wd, fspec->wd);
-              hash_delete (wd_to_name, fspec);
+              hash_remove (wd_to_name, fspec);
             }
 
           /* Note we get IN_ATTRIB for unlink() as st_nlink decrements.