di-set: add "const" to a cast
authorJim Meyering <meyering@redhat.com>
Tue, 8 Feb 2011 07:57:36 +0000 (08:57 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 8 Feb 2011 07:57:50 +0000 (08:57 +0100)
* lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
"(void const *)", not "(void *)".  Spotted by Bruno Haible.

ChangeLog
lib/di-set.c

index c1ba821..2703b2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-08  Jim Meyering  <meyering@redhat.com>
+
+       di-set: add "const" to a cast
+       * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
+       "(void const *)", not "(void *)".  Spotted by Bruno Haible.
+
 2011-02-06  Bruno Haible  <bruno@clisp.org>
 
        Rename module 'wctype' to 'wctype-h'.
index 5e839a3..4730e75 100644 (file)
@@ -233,7 +233,7 @@ di_set_insert (struct di_set *dis, dev_t dev, ino_t ino)
     return -1;
 
   /* Put I into the inode set.  */
-  return hash_insert0 (ino_set, (void *) i, NULL);
+  return hash_insert0 (ino_set, (void const *) i, NULL);
 }
 
 /* Look up the DEV,INO pair in the set DIS.