]> 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:30:00 +0000 (06:30 +0000)
committerTatuya JINMEI 神明達哉 <jinmei@isc.org>
Thu, 6 Jul 2006 06:30:00 +0000 (06:30 +0000)
lib/dns/acache.c

index 6b8ff8b9576c07834e7d08b2fea1d573d0794e98..35e36ce6f7b5c416421a3d7848fe6357e712964c 100644 (file)
@@ -14,7 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: acache.c,v 1.17 2006/06/28 08:28:49 jinmei Exp $ */
+/* $Id: acache.c,v 1.18 2006/07/06 06:30:00 jinmei Exp $ */
 
 #include <config.h>
 
@@ -87,7 +87,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)