aboutsummaryrefslogtreecommitdiff
path: root/src/social/gnunet-social.c
diff options
context:
space:
mode:
authorCarlo von lynX <lynX@time.to.get.psyced.org>2016-07-27 23:15:28 +0000
committerCarlo von lynX <lynX@time.to.get.psyced.org>2016-07-27 23:15:28 +0000
commit46b723ebd22301be02cfbca34c471f9397f163c5 (patch)
tree376c3399ec9127404e8bbb25ce237e975739af2d /src/social/gnunet-social.c
parente89ea93e49c51c0d21ddc4b569feb576fd1a29f7 (diff)
downloadgnunet-46b723ebd22301be02cfbca34c471f9397f163c5.tar.gz
gnunet-46b723ebd22301be02cfbca34c471f9397f163c5.zip
social: fix various warnings
Diffstat (limited to 'src/social/gnunet-social.c')
-rw-r--r--src/social/gnunet-social.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/social/gnunet-social.c b/src/social/gnunet-social.c
index ed3801abc..68a45bd5e 100644
--- a/src/social/gnunet-social.c
+++ b/src/social/gnunet-social.c
@@ -1055,9 +1055,9 @@ app_recv_ego (void *cls,
1055 const struct GNUNET_CRYPTO_EcdsaPublicKey *pub_key, 1055 const struct GNUNET_CRYPTO_EcdsaPublicKey *pub_key,
1056 const char *name) 1056 const char *name)
1057{ 1057{
1058 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 1058 char *s = GNUNET_CRYPTO_ecdsa_public_key_to_string (pub_key);
1059 "Ego: %s\t%s\n", 1059 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Ego: %s\t%s\n", s, name);
1060 GNUNET_CRYPTO_ecdsa_public_key_to_string (pub_key), name); 1060 GNUNET_free (s);
1061 1061
1062 if (0 == memcmp (&ego_pub_key, pub_key, sizeof (*pub_key)) 1062 if (0 == memcmp (&ego_pub_key, pub_key, sizeof (*pub_key))
1063 || (NULL != opt_ego && 0 == strcmp (opt_ego, name))) 1063 || (NULL != opt_ego && 0 == strcmp (opt_ego, name)))
@@ -1107,7 +1107,7 @@ core_connected (void *cls, const struct GNUNET_PeerIdentity *my_identity)
1107 * @param cls closure 1107 * @param cls closure
1108 * @param args remaining command-line arguments 1108 * @param args remaining command-line arguments
1109 * @param cfgfile name of the configuration file used (for saving, can be NULL!) 1109 * @param cfgfile name of the configuration file used (for saving, can be NULL!)
1110 * @param cfg configuration 1110 * @param c configuration
1111 */ 1111 */
1112static void 1112static void
1113run (void *cls, char *const *args, const char *cfgfile, 1113run (void *cls, char *const *args, const char *cfgfile,