compile fixup.

git-svn-id: file:///svn/unbound/trunk@215 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-04-03 09:43:20 +00:00
parent 290f94369f
commit f262c2c051
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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;