From 74236fe22800e18c5c776d32bbdd1fc9b948a00e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Wed, 5 Aug 2015 21:47:34 +0000 Subject: [PATCH] -rename and fix char pointer --- src/rps/gnunet-service-rps.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index ef9cf4a1b..5d9d2f9c6 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -1153,9 +1153,9 @@ add_peer_array_to_set (const struct GNUNET_PeerIdentity *peer_array, * @param cls type of the message that was sent */ static void -ntfy_callback (void *cls) +mq_notify_sent_cb (void *cls) { - char *type = (char *) cls; + const char *type = cls; LOG (GNUNET_ERROR_TYPE_DEBUG, "%s was sent.\n", type); @@ -1209,7 +1209,7 @@ send_pull_reply (const struct GNUNET_PeerIdentity *peer_id, send_size * sizeof (struct GNUNET_PeerIdentity)); GNUNET_MQ_notify_sent (ev, - ntfy_callback, + mq_notify_sent_cb, "PULL REPLY"); GNUNET_MQ_send (mq, ev); } @@ -1940,7 +1940,7 @@ send_pull_request (struct GNUNET_PeerIdentity *peer_id) ev = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REQUEST); mq = get_mq (peer_id); GNUNET_MQ_notify_sent (ev, - ntfy_callback, + mq_notify_sent_cb, "PULL REQUEST"); GNUNET_MQ_send (mq, ev); } @@ -1964,7 +1964,7 @@ send_push (struct GNUNET_PeerIdentity *peer_id) ev = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_RPS_PP_PUSH); mq = get_mq (peer_id); GNUNET_MQ_notify_sent (ev, - ntfy_callback, + mq_notify_sent_cb, "PUSH"); GNUNET_MQ_send (mq, ev); } -- 2.25.1