From: Jim Meyering Date: Tue, 8 Feb 2011 07:57:36 +0000 (+0100) Subject: di-set: add "const" to a cast X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=489cedffb410a94803cf10502b27b1facf026dfc;p=pspp 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. --- diff --git a/ChangeLog b/ChangeLog index c1ba82170d..2703b2dfee 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 5e839a311e..4730e750a4 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.