aboutsummaryrefslogtreecommitdiff
path: root/src/hash.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2016-01-15 17:25:16 -0500
committerFranklin Wei <git@fwei.tk>2016-01-15 17:25:16 -0500
commitb8a5c11cbd8a0514754558892d9bbd620345799c (patch)
tree5687d0e98212c7067c5049bd3914045595c75d21 /src/hash.c
parentabe9f416501c5354be3ce292b4220000edf021ab (diff)
downloadnetcosm-b8a5c11cbd8a0514754558892d9bbd620345799c.zip
netcosm-b8a5c11cbd8a0514754558892d9bbd620345799c.tar.gz
netcosm-b8a5c11cbd8a0514754558892d9bbd620345799c.tar.bz2
netcosm-b8a5c11cbd8a0514754558892d9bbd620345799c.tar.xz
refactor headers
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/hash.c b/src/hash.c
index 9e27fee..44b657f 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -16,7 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "netcosm.h"
+#include "hash.h"
#include <stdlib.h>
#include <string.h>
@@ -83,7 +83,6 @@ void hash_setfreedata_cb(void *ptr, void (*cb)(void *data))
void hash_free(void *ptr)
{
- sig_debugf("freeing map\n");
if(ptr)
{
struct hash_map *map = ptr;
@@ -95,10 +94,7 @@ void hash_free(void *ptr)
struct hash_node *next = node->next;
if(map->free_data)
- {
- debugf("freeing data\n");
map->free_data((void*)node->data);
- }
if(map->free_key)
map->free_key((void*)node->key);
free(node);