]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
warning fix in a call to isc_atomic_store() [RT#16219]
authorTatuya JINMEI 神明達哉 <jinmei@isc.org>
Thu, 6 Jul 2006 06:31:49 +0000 (06:31 +0000)
committerTatuya JINMEI 神明達哉 <jinmei@isc.org>
Thu, 6 Jul 2006 06:31:49 +0000 (06:31 +0000)
lib/dns/acache.c

index 57785f2080a8bce536eea19afeebff04643bc48e..fd134c02f0b9be492afb0cec9d411341de310080 100644 (file)
@@ -14,7 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: acache.c,v 1.3.2.14 2006/05/03 00:07:49 marka Exp $ */
+/* $Id: acache.c,v 1.3.2.15 2006/07/06 06:31:49 jinmei Exp $ */
 
 #include <config.h>
 
@@ -85,7 +85,8 @@
 #define ACACHE_LOCK(l, t)      RWLOCK((l), (t))
 #define ACACHE_UNLOCK(l, t)    RWUNLOCK((l), (t))
 
-#define acache_storetime(entry, t) (isc_atomic_store(&(entry)->lastused, (t)))
+#define acache_storetime(entry, t) \
+       (isc_atomic_store((isc_int32_t *)&(entry)->lastused, (t)))
 #else
 #define ACACHE_INITLOCK(l)     isc_mutex_init(l)
 #define ACACHE_DESTROYLOCK(l)  DESTROYLOCK(l)