projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove status_file_tmp_name. This code does not improve robustness.
[oweals/opkg-lede.git]
/
libopkg
/
hash_table.c
diff --git
a/libopkg/hash_table.c
b/libopkg/hash_table.c
index df6ff4f024b313ba48128938771f4435ecf852ae..9e42da07a936220dcae41ad1593a32af78a6a9d3 100644
(file)
--- a/
libopkg/hash_table.c
+++ b/
libopkg/hash_table.c
@@
-123,11
+123,9
@@
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;
{
int ndx= hash_index(hash, key);
hash_entry_t *hash_entry = hash->entries + ndx;
- 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 (hash_entry->key) {
if (strcmp(hash_entry->key, key) == 0) {
/* alread in table, update the value */
- 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 {
hash_entry->data = value;
return 0;
} else {
@@
-136,7
+134,6
@@
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
*/
* then add a new entry
* before we can hook up the value
*/
- 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;
if (strcmp(hash_entry->key, key) == 0) {
while (hash_entry->next) {
hash_entry = hash_entry->next;
if (strcmp(hash_entry->key, key) == 0) {