oops thats func not *func

2000-11-09  JP Rosevear  <jpr@helixcode.com>

	* e-dbhash.h: oops thats func not *func

	* e-dbhash.c (e_dbhash_foreach_key): Memset the data DBT to 0

svn path=/trunk/; revision=6521
This commit is contained in:
JP Rosevear
2000-11-09 22:18:17 +00:00
committed by JP Rosevear
parent 9a3020083a
commit b24160aa2c
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2000-11-09 JP Rosevear <jpr@helixcode.com>
* e-dbhash.h: oops thats func not *func
* e-dbhash.c (e_dbhash_foreach_key): Memset the data DBT to 0
2000-11-07 JP Rosevear <jpr@helixcode.com>
* Makefile.am: Build e-dbhash.[hc]

View File

@ -80,8 +80,6 @@ e_dbhash_add (EDbHash *edbh, const gchar *key, const gchar *data)
/* Add to database */
db->put (db, &dkey, &ddata, 0);
g_free (local_hash);
}
void
@ -104,7 +102,7 @@ e_dbhash_remove (EDbHash *edbh, const char *key)
}
void
e_dbhash_foreach_key (EDbHash *edbh, EDbHashFunc *func, gpointer user_data)
e_dbhash_foreach_key (EDbHash *edbh, EDbHashFunc func, gpointer user_data)
{
DB *db;
DBT dkey;
@ -145,6 +143,7 @@ e_dbhash_compare (EDbHash *edbh, const char *key, const char *compare_data)
string_to_dbt (key, &dkey);
/* Lookup in database */
memset (&ddata, 0, sizeof (DBT));
db->get (db, &dkey, &ddata, 0);
/* Compare */

View File

@ -35,7 +35,7 @@ void e_dbhash_add (EDbHash *edbh, const char *key, const char *data);
void e_dbhash_remove (EDbHash *edbh, const char *key);
EDbHashStatus e_dbhash_compare (EDbHash *edbh, const char *key, const char *compare_data);
void e_dbhash_foreach_key (EDbHash *edbh, EDbHashFunc *func, gpointer user_data);
void e_dbhash_foreach_key (EDbHash *edbh, EDbHashFunc func, gpointer user_data);
void e_dbhash_write (EDbHash *edbh);