aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed_peers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testbed/gnunet-service-testbed_peers.c')
-rw-r--r--src/testbed/gnunet-service-testbed_peers.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/testbed/gnunet-service-testbed_peers.c b/src/testbed/gnunet-service-testbed_peers.c
index ba20d6d6b..9c12c25a6 100644
--- a/src/testbed/gnunet-service-testbed_peers.c
+++ b/src/testbed/gnunet-service-testbed_peers.c
@@ -429,14 +429,15 @@ GST_handle_peer_create (void *cls, struct GNUNET_SERVER_Client *client,
429 429
430 430
431/** 431/**
432 * Message handler for GNUNET_MESSAGE_TYPE_TESTBED_DESTROYPEER messages 432 * Message handler for #GNUNET_MESSAGE_TYPE_TESTBED_DESTROYPEER messages
433 * 433 *
434 * @param cls NULL 434 * @param cls NULL
435 * @param client identification of the client 435 * @param client identification of the client
436 * @param message the actual message 436 * @param message the actual message
437 */ 437 */
438void 438void
439GST_handle_peer_destroy (void *cls, struct GNUNET_SERVER_Client *client, 439GST_handle_peer_destroy (void *cls,
440 struct GNUNET_SERVER_Client *client,
440 const struct GNUNET_MessageHeader *message) 441 const struct GNUNET_MessageHeader *message)
441{ 442{
442 const struct GNUNET_TESTBED_PeerDestroyMessage *msg; 443 const struct GNUNET_TESTBED_PeerDestroyMessage *msg;
@@ -446,8 +447,9 @@ GST_handle_peer_destroy (void *cls, struct GNUNET_SERVER_Client *client,
446 447
447 msg = (const struct GNUNET_TESTBED_PeerDestroyMessage *) message; 448 msg = (const struct GNUNET_TESTBED_PeerDestroyMessage *) message;
448 peer_id = ntohl (msg->peer_id); 449 peer_id = ntohl (msg->peer_id);
449 LOG_DEBUG ("Received peer destory on peer: %u and operation id: %ul\n", 450 LOG_DEBUG ("Received peer destory on peer: %u and operation id: %llu\n",
450 peer_id, GNUNET_ntohll (msg->operation_id)); 451 (unsigned int) peer_id,
452 (unsigned long long) GNUNET_ntohll (msg->operation_id));
451 if (!VALID_PEER_ID (peer_id)) 453 if (!VALID_PEER_ID (peer_id))
452 { 454 {
453 LOG (GNUNET_ERROR_TYPE_ERROR, 455 LOG (GNUNET_ERROR_TYPE_ERROR,
@@ -494,7 +496,7 @@ GST_handle_peer_destroy (void *cls, struct GNUNET_SERVER_Client *client,
494 * Stats a peer 496 * Stats a peer
495 * 497 *
496 * @param peer the peer to start 498 * @param peer the peer to start
497 * @return GNUNET_OK upon success; GNUNET_SYSERR upon failure 499 * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure
498 */ 500 */
499static int 501static int
500start_peer (struct Peer *peer) 502start_peer (struct Peer *peer)
@@ -511,7 +513,7 @@ start_peer (struct Peer *peer)
511 * Stops a peer 513 * Stops a peer
512 * 514 *
513 * @param peer the peer to stop 515 * @param peer the peer to stop
514 * @return GNUNET_OK upon success; GNUNET_SYSERR upon failure 516 * @return #GNUNET_OK upon success; #GNUNET_SYSERR upon failure
515 */ 517 */
516static int 518static int
517stop_peer (struct Peer *peer) 519stop_peer (struct Peer *peer)