summaryrefslogtreecommitdiffstats
path: root/libopkg/hash_table.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-08 20:20:03 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-12-08 20:20:03 (EST)
commit2fdb3fc0b67757afd6fe7a244b6e14d2a546af0e (patch)
treea5e28a26a07e429a753f29945cc8ba9c4f6c9884 /libopkg/hash_table.c
parente4a49209222ea7385f64e9336425df115a3ea1a3 (diff)
Merge commit 'grg' into HEAD
git-svn-id: http://opkg.googlecode.com/svn/trunk@471 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/hash_table.c')
-rw-r--r--libopkg/hash_table.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libopkg/hash_table.c b/libopkg/hash_table.c
index 2d42d91..f3705ea 100644
--- a/libopkg/hash_table.c
+++ b/libopkg/hash_table.c
@@ -46,8 +46,7 @@ void
hash_table_init(const char *name, hash_table_t *hash, int len)
{
if (hash->entries != NULL) {
- fprintf(stderr, "ERROR: %s called on a non empty hash table\n",
- __FUNCTION__);
+ opkg_msg(ERROR, "Internal error: non empty hash table.\n");
return;
}
@@ -114,7 +113,6 @@ void *hash_table_get(hash_table_t *hash, const char *key)
if (hash_entry->key)
{
if (strcmp(key, hash_entry->key) == 0) {
- // opkg_message(NULL, OPKG_DEBUG, "Function: %s. Key found for '%s' \n", __FUNCTION__, key);
hash->n_hits++;
return hash_entry->data;
}