]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
please lint.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 14 Aug 2007 13:37:31 +0000 (13:37 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 14 Aug 2007 13:37:31 +0000 (13:37 +0000)
git-svn-id: file:///svn/unbound/trunk@515 be551aaa-1e26-0410-a405-d3ace91eadb9

services/cache/infra.c

index 8cdaebfbcecd49a5fb22865d53277a8e7a1291eb..6b2d5cea554464a76529fe4e385a2eda9e9b465a 100644 (file)
@@ -53,7 +53,7 @@ static size_t
 infra_host_sizefunc(void* k, void* ATTR_UNUSED(d))
 {
        struct infra_host_key* key = (struct infra_host_key*)k;
-       return sizeof(struct infra_host_key) + sizeof(struct infra_host_data) 
+       return sizeof(*key) + sizeof(struct infra_host_data) 
                + lock_get_mem(&key->entry.lock);
 }
 
@@ -296,7 +296,7 @@ static size_t
 infra_lame_sizefunc(void* k, void* ATTR_UNUSED(d))
 {
        struct infra_lame_key* key = (struct infra_lame_key*)k;
-       return sizeof(struct infra_lame_key)+sizeof(struct infra_lame_data)
+       return sizeof(*key) + sizeof(struct infra_lame_data)
                + lock_get_mem(&key->entry.lock);
 }