PolicyKit: Branch 'master'
David Zeuthen
david at kemper.freedesktop.org
Tue Mar 4 12:11:31 PST 2008
src/kit/kit-hash.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
New commits:
commit 4aa626d0f8b9bf9a72880a567e48f472228eca8c
Author: David Zeuthen <davidz at redhat.com>
Date: Tue Mar 4 15:10:24 2008 -0500
don't check key/values in KitHash; they are not neccesarily pointers
diff --git a/src/kit/kit-hash.c b/src/kit/kit-hash.c
index 6a924fe..0d074ea 100644
--- a/src/kit/kit-hash.c
+++ b/src/kit/kit-hash.c
@@ -193,8 +193,8 @@ kit_hash_unref (KitHash *hash)
*/
kit_bool_t
kit_hash_insert (KitHash *hash,
- void *key,
- void *value)
+ void *key,
+ void *value)
{
int bucket;
KitHashNode **nodep;
@@ -202,9 +202,6 @@ kit_hash_insert (KitHash *hash,
void *key_copy;
void *value_copy;
- kit_return_val_if_fail (hash != NULL, FALSE);
- kit_return_val_if_fail (key != NULL, FALSE);
-
key_copy = NULL;
value_copy = NULL;
if (hash->key_copy_func != NULL) {
@@ -290,9 +287,6 @@ kit_hash_lookup (KitHash *hash, void *key, kit_bool_t *found)
if (found != NULL)
*found = FALSE;
- kit_return_val_if_fail (hash != NULL, NULL);
- kit_return_val_if_fail (key != NULL, NULL);
-
bucket = hash->hash_func (key) % hash->num_top_nodes;
node = hash->top_nodes [bucket];
More information about the hal-commit
mailing list