From 489cedffb410a94803cf10502b27b1facf026dfc Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 Feb 2011 08:57:36 +0100 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ lib/di-set.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c1ba82170..2703b2dfe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-02-08 Jim Meyering + + 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 Rename module 'wctype' to 'wctype-h'. diff --git a/lib/di-set.c b/lib/di-set.c index 5e839a311..4730e750a 100644 --- a/lib/di-set.c +++ b/lib/di-set.c @@ -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. -- 2.11.0