| 123 | */ |
| 124 | |
| 125 | static ITEM * hash_search( struct hash * hp, unsigned int keyval, |
| 126 | OBJECT * keydata, ITEM * * previous ) |
| 127 | { |
| 128 | ITEM * i = *hash_bucket( hp, keyval ); |
| 129 | ITEM * p = 0; |
| 130 | for ( ; i; i = i->next ) |
| 131 | { |
| 132 | if ( object_equal( hash_item_key( i ), keydata ) ) |
| 133 | { |
| 134 | if ( previous ) |
| 135 | *previous = p; |
| 136 | return i; |
| 137 | } |
| 138 | p = i; |
| 139 | } |
| 140 | return 0; |
| 141 | } |
| 142 | |
| 143 | |
| 144 | /* |
no test coverage detected