mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
compile fixup.
git-svn-id: file:///svn/unbound/trunk@215 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
290f94369f
commit
f262c2c051
2 changed files with 3 additions and 3 deletions
|
|
@ -4,6 +4,7 @@
|
|||
The type on several OSes ranges from int, int32, uint32, size_t.
|
||||
Detects unsigned or signed using math trick.
|
||||
- constants for DNS flags.
|
||||
- compilation without locks fixup.
|
||||
|
||||
2 April 2007: Wouter
|
||||
- check sizes of udp received messages, not too short.
|
||||
|
|
|
|||
|
|
@ -351,9 +351,8 @@ lruhash_lookup(struct lruhash* table, hashvalue_t hash, void* key, int wr)
|
|||
lock_quick_unlock(&table->lock);
|
||||
|
||||
if(entry) {
|
||||
if(wr)
|
||||
lock_rw_wrlock(&entry->lock);
|
||||
else lock_rw_rdlock(&entry->lock);
|
||||
if(wr) { lock_rw_wrlock(&entry->lock); }
|
||||
else { lock_rw_rdlock(&entry->lock); }
|
||||
}
|
||||
lock_quick_unlock(&bin->lock);
|
||||
return entry;
|
||||
|
|
|
|||
Loading…
Reference in a new issue