diff options
Diffstat (limited to 'lib/dns/sdb.c')
-rw-r--r-- | lib/dns/sdb.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/dns/sdb.c b/lib/dns/sdb.c index 3a1c0ee8..24aff3fa 100644 --- a/lib/dns/sdb.c +++ b/lib/dns/sdb.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: sdb.c,v 1.58 2007/06/18 23:47:41 tbox Exp $ */ +/* $Id: sdb.c,v 1.59 2007/08/27 03:32:27 marka Exp $ */ /*! \file */ @@ -121,6 +121,10 @@ typedef struct sdb_rdatasetiter { /* This is a reasonable value */ #define SDB_DEFAULT_TTL (60 * 60 * 24) +#ifdef __COVERITY__ +#define MAYBE_LOCK(sdb) LOCK(&sdb->implementation->driverlock) +#define MAYBE_UNLOCK(sdb) UNLOCK(&sdb->implementation->driverlock) +#else #define MAYBE_LOCK(sdb) \ do { \ unsigned int flags = sdb->implementation->flags; \ @@ -134,6 +138,7 @@ typedef struct sdb_rdatasetiter { if ((flags & DNS_SDBFLAG_THREADSAFE) == 0) \ UNLOCK(&sdb->implementation->driverlock); \ } while (0) +#endif static int dummy; |