From 14ad68b9bbc0e9aafbffdb588934aff594a528a5 Mon Sep 17 00:00:00 2001 From: John Jones Date: Tue, 28 Nov 2017 23:42:17 -0500 Subject: [PATCH] fix compiler warning --- core/null.c | 2 +- test/core/test_compat_go.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/null.c b/core/null.c index a7db33d..589a306 100644 --- a/core/null.c +++ b/core/null.c @@ -215,7 +215,7 @@ void* ipfs_null_listen (void *ptr) */ } else { // timeout... do maintenance - struct PeerEntry* entry = current_peer_entry->item; + //struct PeerEntry* entry = current_peer_entry->item; // JMJ Debugging //ipfs_null_do_maintenance(listen_param->local_node, entry->peer); if (current_peer_entry != NULL) diff --git a/test/core/test_compat_go.h b/test/core/test_compat_go.h index a5255f4..1e0b308 100644 --- a/test/core/test_compat_go.h +++ b/test/core/test_compat_go.h @@ -15,6 +15,7 @@ int test_compat_go_join_swarm() { pthread_t daemon_thread; struct FSRepo* fs_repo = NULL; + /* libp2p_logger_add_class("test_api"); libp2p_logger_add_class("yamux"); libp2p_logger_add_class("identify"); @@ -22,6 +23,8 @@ int test_compat_go_join_swarm() { libp2p_logger_add_class("multistream"); libp2p_logger_add_class("swarm"); libp2p_logger_add_class("secio"); + */ + libp2p_logger_add_class("dialer"); // Here is the connection information for the GO version: char* remote_string = "/ip4/10.211.55.2/tcp/4001/ipfs/QmacSE6bCZiAu7nrYkhPATaSoL2q9BszkKzbX6fCiXuBGA";