Checked in some code improvements and minor fixes that I discovered in the

FreeBSD ports system.
This commit is contained in:
Dan Fandrich 2008-09-10 20:05:45 +00:00
parent fce9c3a9f1
commit 6cea51585f
5 changed files with 15 additions and 10 deletions

View file

@ -321,7 +321,7 @@ static size_t fd_key_compare(void*k1, size_t k1_len, void*k2, size_t k2_len)
{
(void) k1_len; (void) k2_len;
return ((*((int* ) k1)) == (*((int* ) k2))) ? 1 : 0;
return (*((int* ) k1)) == (*((int* ) k2));
}
static size_t hash_fd(void* key, size_t key_length, size_t slots_num)