Mercurial > gnulib
changeset 14307:569d4910c334
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.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 08 Feb 2011 08:57:36 +0100 |
parents | b11dd805ba6b |
children | 3bdf4414b758 |
files | ChangeLog lib/di-set.c |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Feb 07 19:53:07 2011 -0800 +++ b/ChangeLog Tue Feb 08 08:57:36 2011 +0100 @@ -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'.
--- a/lib/di-set.c Mon Feb 07 19:53:07 2011 -0800 +++ b/lib/di-set.c Tue Feb 08 08:57:36 2011 +0100 @@ -233,7 +233,7 @@ 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.