diff options
author | Luigi Rizzo <luigi@FreeBSD.org> | 2010-03-08 11:27:08 +0000 |
---|---|---|
committer | Luigi Rizzo <luigi@FreeBSD.org> | 2010-03-08 11:27:08 +0000 |
commit | d12cc633031d558b2b905bf040ff077c1e46f987 (patch) | |
tree | 5a30488a478b6c0a079ab4831632e7bfc7470446 /sys/netinet/ipfw/dn_heap.c | |
parent | b854138d5f87200ce874d4e1c1825018de4c066f (diff) | |
download | src-d12cc633031d558b2b905bf040ff077c1e46f987.tar.gz src-d12cc633031d558b2b905bf040ff077c1e46f987.zip |
don't use C++ keywords as variable names
Notes
Notes:
svn path=/head/; revision=204865
Diffstat (limited to 'sys/netinet/ipfw/dn_heap.c')
-rw-r--r-- | sys/netinet/ipfw/dn_heap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/ipfw/dn_heap.c b/sys/netinet/ipfw/dn_heap.c index ec9cb6c4181b..6773851327c3 100644 --- a/sys/netinet/ipfw/dn_heap.c +++ b/sys/netinet/ipfw/dn_heap.c @@ -323,20 +323,20 @@ struct dn_ht { int ofs; /* offset of link field */ uint32_t (*hash)(uintptr_t, int, void *arg); int (*match)(void *_el, uintptr_t key, int, void *); - void *(*new)(uintptr_t, int, void *); + void *(*newh)(uintptr_t, int, void *); void **ht; /* bucket heads */ }; /* * Initialize, allocating bucket pointers inline. * Recycle previous record if possible. - * If the 'new' function is not supplied, we assume that the + * If the 'newh' function is not supplied, we assume that the * key passed to ht_find is the same object to be stored in. */ struct dn_ht * dn_ht_init(struct dn_ht *ht, int buckets, int ofs, uint32_t (*h)(uintptr_t, int, void *), int (*match)(void *, uintptr_t, int, void *), - void *(*new)(uintptr_t, int, void *)) + void *(*newh)(uintptr_t, int, void *)) { int l; @@ -410,7 +410,7 @@ dn_ht_init(struct dn_ht *ht, int buckets, int ofs, ht->ofs = ofs; ht->hash = h; ht->match = match; - ht->new = new; + ht->newh = newh; } return ht; } @@ -471,8 +471,8 @@ dn_ht_find(struct dn_ht *ht, uintptr_t key, int flags, void *arg) } else if (flags & DNHT_INSERT) { // printf("%s before calling new, bucket %d ofs %d\n", // __FUNCTION__, i, ht->ofs); - p = ht->new ? ht->new(key, flags, arg) : (void *)key; - // printf("%s new returns %p\n", __FUNCTION__, p); + p = ht->newh ? ht->newh(key, flags, arg) : (void *)key; + // printf("%s newh returns %p\n", __FUNCTION__, p); if (p) { ht->entries++; *(void **)((char *)p + ht->ofs) = ht->ht[i]; |