aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlo von lynX <lynX@time.to.get.psyced.org>2016-08-03 20:28:45 +0000
committerCarlo von lynX <lynX@time.to.get.psyced.org>2016-08-03 20:28:45 +0000
commitc5f879125f1c842f679b2c8e95341f3c1d3aa184 (patch)
treeb17e1e834cc199d61611d2176ddde284d245096f /src
parent365eaaa2477eea227fde8503d6af56b3e12a84a1 (diff)
downloadgnunet-c5f879125f1c842f679b2c8e95341f3c1d3aa184.tar.gz
gnunet-c5f879125f1c842f679b2c8e95341f3c1d3aa184.zip
leaks & warns
Diffstat (limited to 'src')
-rw-r--r--src/psyc/test_psyc.c2
-rw-r--r--src/psycstore/test_psycstore.c2
-rw-r--r--src/social/gnunet-service-social.c1
-rw-r--r--src/social/gnunet-social.c4
-rw-r--r--src/social/test_social.c2
5 files changed, 7 insertions, 4 deletions
diff --git a/src/psyc/test_psyc.c b/src/psyc/test_psyc.c
index 329ad5b25..7d39d8031 100644
--- a/src/psyc/test_psyc.c
+++ b/src/psyc/test_psyc.c
@@ -621,7 +621,7 @@ tmit_notify_mod (void *cls, uint16_t *data_size, void *data, uint8_t *oper,
621 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 621 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
622 "Test #%d: Transmit notify modifier: %u bytes available, " 622 "Test #%d: Transmit notify modifier: %u bytes available, "
623 "%u modifiers left to process.\n", 623 "%u modifiers left to process.\n",
624 test, *data_size, GNUNET_PSYC_env_get_count (tmit->env)); 624 test, *data_size, (unsigned int) GNUNET_PSYC_env_get_count (tmit->env));
625 625
626 uint16_t name_size = 0; 626 uint16_t name_size = 0;
627 size_t value_size = 0; 627 size_t value_size = 0;
diff --git a/src/psycstore/test_psycstore.c b/src/psycstore/test_psycstore.c
index 6741858ee..37e6b657c 100644
--- a/src/psycstore/test_psycstore.c
+++ b/src/psycstore/test_psycstore.c
@@ -195,7 +195,7 @@ state_result (void *cls,
195 { 195 {
196 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 196 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
197 " variable %s differs\nReceived: %.*s\nExpected: %.*s\n", 197 " variable %s differs\nReceived: %.*s\nExpected: %.*s\n",
198 name, value_size, (char*) value, val_size, (char*) val); 198 name, (int) value_size, (char*) value, (int) val_size, (char*) val);
199 GNUNET_assert (0); 199 GNUNET_assert (0);
200 return GNUNET_SYSERR; 200 return GNUNET_SYSERR;
201 } 201 }
diff --git a/src/social/gnunet-service-social.c b/src/social/gnunet-service-social.c
index e499130d4..afcd59b5d 100644
--- a/src/social/gnunet-service-social.c
+++ b/src/social/gnunet-service-social.c
@@ -1004,6 +1004,7 @@ place_recv_save_data (void *cls,
1004 if (plc->file_offset != GNUNET_DISK_file_seek 1004 if (plc->file_offset != GNUNET_DISK_file_seek
1005 (fh, plc->file_offset, GNUNET_DISK_SEEK_SET)) { 1005 (fh, plc->file_offset, GNUNET_DISK_SEEK_SET)) {
1006 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "seek", filename); 1006 GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_ERROR, "seek", filename);
1007 GNUNET_DISK_file_close (fh);
1007 GNUNET_free (filename); 1008 GNUNET_free (filename);
1008 return; 1009 return;
1009 } 1010 }
diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c
index 5aa74c81a..39ebff442 100644
--- a/src/social/gnunet-social.c
+++ b/src/social/gnunet-social.c
@@ -936,8 +936,10 @@ guest_reconnected (void *cls, int result,
936 const struct GNUNET_CRYPTO_EddsaPublicKey *place_pub_key, 936 const struct GNUNET_CRYPTO_EddsaPublicKey *place_pub_key,
937 uint64_t max_message_id) 937 uint64_t max_message_id)
938{ 938{
939 char *place_pub_str = GNUNET_CRYPTO_eddsa_public_key_to_string (place_pub_key);
939 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 940 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
940 "Guest reconnected to place %s.\n", GNUNET_CRYPTO_eddsa_public_key_to_string(place_pub_key)); 941 "Guest reconnected to place %s.\n", place_pub_str);
942 GNUNET_free (place_pub_str);
941 943
942 if (op_guest_leave) { 944 if (op_guest_leave) {
943 guest_leave (); 945 guest_leave ();
diff --git a/src/social/test_social.c b/src/social/test_social.c
index eb32a031f..406f5cb67 100644
--- a/src/social/test_social.c
+++ b/src/social/test_social.c
@@ -1085,7 +1085,7 @@ host_answer_door (void *cls,
1085 (uint8_t) test, join_req_count); 1085 (uint8_t) test, join_req_count);
1086 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1086 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1087 "%s\n%.*s\n", 1087 "%s\n%.*s\n",
1088 method_name, data_size, (const char *) data); 1088 method_name, (int) data_size, (const char *) data);
1089 1089
1090 switch (test) 1090 switch (test)
1091 { 1091 {