From: Tatuya JINMEI 神明達哉 Date: Thu, 6 Jul 2006 06:30:00 +0000 (+0000) Subject: warning fix in a call to isc_atomic_store() [RT#16219] X-Git-Tag: v9.4.0b3~49^2~100 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=3d5430b75a454e3b4ebe4aecb2083fab1bb9569b;p=thirdparty%2Fbind9.git warning fix in a call to isc_atomic_store() [RT#16219] --- diff --git a/lib/dns/acache.c b/lib/dns/acache.c index 6b8ff8b9576..35e36ce6f7b 100644 --- a/lib/dns/acache.c +++ b/lib/dns/acache.c @@ -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 @@ -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)