summaryrefslogtreecommitdiffstats
path: root/hash_table.c
diff options
context:
space:
mode:
authorticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:18:06 (EST)
committer ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2008-12-14 23:18:06 (EST)
commit0b7a99e65bb95cd86d8846a21fce1cfc2b0b7495 (patch)
tree5e32dd2d7117c2c5b6e3cdab91cc68d1fc9a2522 /hash_table.c
parent7fc0de8e48b598a188237a13424be3f86189b3d9 (diff)
* Rename top level ipkg directory to opkg
git-svn-id: http://opkg.googlecode.com/svn/trunk@8 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'hash_table.c')
-rw-r--r--hash_table.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/hash_table.c b/hash_table.c
index 76e1aa3..41877c2 100644
--- a/hash_table.c
+++ b/hash_table.c
@@ -1,4 +1,4 @@
-/* hash.c - hash tables for ipkg
+/* hash.c - hash tables for opkg
Steven M. Ayer, Jamey Hicks
@@ -20,7 +20,7 @@
#include <stdlib.h>
#include <string.h>
#include "hash_table.h"
-#include "ipkg_message.h"
+#include "opkg_message.h"
static int hash_index(hash_table_t *hash, const char *pkg_name);
@@ -92,7 +92,7 @@ void *hash_table_get(hash_table_t *hash, const char *key)
if (hash_entry->key)
{
if (strcmp(key, hash_entry->key) == 0) {
- // ipkg_message(NULL, IPKG_DEBUG, "Function: %s. Key found for '%s' \n", __FUNCTION__, key);
+ // opkg_message(NULL, OPKG_DEBUG, "Function: %s. Key found for '%s' \n", __FUNCTION__, key);
return hash_entry->data;
}
}
@@ -105,11 +105,11 @@ int hash_table_insert(hash_table_t *hash, const char *key, void *value)
{
int ndx= hash_index(hash, key);
hash_entry_t *hash_entry = hash->entries + ndx;
- if (0) ipkg_message(NULL, IPKG_DEBUG2, "Function: %s. Inserting in hash for '%s' \n", __FUNCTION__, key);
+ if (0) opkg_message(NULL, OPKG_DEBUG2, "Function: %s. Inserting in hash for '%s' \n", __FUNCTION__, key);
if (hash_entry->key) {
if (strcmp(hash_entry->key, key) == 0) {
/* alread in table, update the value */
- if (0) ipkg_message(NULL, IPKG_DEBUG2, "Function: %s. Value already in hash for '%s' \n", __FUNCTION__, key);
+ if (0) opkg_message(NULL, OPKG_DEBUG2, "Function: %s. Value already in hash for '%s' \n", __FUNCTION__, key);
hash_entry->data = value;
return 0;
} else {
@@ -118,7 +118,7 @@ int hash_table_insert(hash_table_t *hash, const char *key, void *value)
* then add a new entry
* before we can hook up the value
*/
- if (0) ipkg_message(NULL, IPKG_DEBUG2, "Function: %s. Value already in hash by collision for '%s' \n", __FUNCTION__, key);
+ if (0) opkg_message(NULL, OPKG_DEBUG2, "Function: %s. Value already in hash by collision for '%s' \n", __FUNCTION__, key);
while (hash_entry->next)
hash_entry = hash_entry->next;
hash_entry->next = (hash_entry_t *)malloc(sizeof(hash_entry_t));