aboutsummaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-08-05 21:47:34 +0000
committerJulius Bünger <buenger@mytum.de>2015-08-05 21:47:34 +0000
commit74236fe22800e18c5c776d32bbdd1fc9b948a00e (patch)
tree25d66c10381b0b61044a8a8710a872ee09b4f0b9 /src/rps
parent92570078231bdd7401d79a7cb5e4438110ff3109 (diff)
downloadgnunet-74236fe22800e18c5c776d32bbdd1fc9b948a00e.tar.gz
gnunet-74236fe22800e18c5c776d32bbdd1fc9b948a00e.zip
-rename and fix char pointer
Diffstat (limited to 'src/rps')
-rw-r--r--src/rps/gnunet-service-rps.c10
1 files 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,
1153 * @param cls type of the message that was sent 1153 * @param cls type of the message that was sent
1154 */ 1154 */
1155static void 1155static void
1156ntfy_callback (void *cls) 1156mq_notify_sent_cb (void *cls)
1157{ 1157{
1158 char *type = (char *) cls; 1158 const char *type = cls;
1159 LOG (GNUNET_ERROR_TYPE_DEBUG, 1159 LOG (GNUNET_ERROR_TYPE_DEBUG,
1160 "%s was sent.\n", 1160 "%s was sent.\n",
1161 type); 1161 type);
@@ -1209,7 +1209,7 @@ send_pull_reply (const struct GNUNET_PeerIdentity *peer_id,
1209 send_size * sizeof (struct GNUNET_PeerIdentity)); 1209 send_size * sizeof (struct GNUNET_PeerIdentity));
1210 1210
1211 GNUNET_MQ_notify_sent (ev, 1211 GNUNET_MQ_notify_sent (ev,
1212 ntfy_callback, 1212 mq_notify_sent_cb,
1213 "PULL REPLY"); 1213 "PULL REPLY");
1214 GNUNET_MQ_send (mq, ev); 1214 GNUNET_MQ_send (mq, ev);
1215} 1215}
@@ -1940,7 +1940,7 @@ send_pull_request (struct GNUNET_PeerIdentity *peer_id)
1940 ev = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REQUEST); 1940 ev = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_RPS_PP_PULL_REQUEST);
1941 mq = get_mq (peer_id); 1941 mq = get_mq (peer_id);
1942 GNUNET_MQ_notify_sent (ev, 1942 GNUNET_MQ_notify_sent (ev,
1943 ntfy_callback, 1943 mq_notify_sent_cb,
1944 "PULL REQUEST"); 1944 "PULL REQUEST");
1945 GNUNET_MQ_send (mq, ev); 1945 GNUNET_MQ_send (mq, ev);
1946} 1946}
@@ -1964,7 +1964,7 @@ send_push (struct GNUNET_PeerIdentity *peer_id)
1964 ev = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_RPS_PP_PUSH); 1964 ev = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_RPS_PP_PUSH);
1965 mq = get_mq (peer_id); 1965 mq = get_mq (peer_id);
1966 GNUNET_MQ_notify_sent (ev, 1966 GNUNET_MQ_notify_sent (ev,
1967 ntfy_callback, 1967 mq_notify_sent_cb,
1968 "PUSH"); 1968 "PUSH");
1969 GNUNET_MQ_send (mq, ev); 1969 GNUNET_MQ_send (mq, ev);
1970} 1970}