diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-06 14:44:08 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-06 14:44:08 +0000 |
commit | e8cf81fdb3fdaef59b49da8f6e952a3225ab326e (patch) | |
tree | 4e5f75d44a9121b32895fdfc5a4177052a7d923d /src/testbed/gnunet-service-testbed_peers.c | |
parent | ae8cb91d9961899075a892a3110204bc139c2eb6 (diff) | |
download | gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.tar.gz gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.zip |
fixing compiler warnings
Diffstat (limited to 'src/testbed/gnunet-service-testbed_peers.c')
-rw-r--r-- | src/testbed/gnunet-service-testbed_peers.c | 14 |
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 | */ |
438 | void | 438 | void |
439 | GST_handle_peer_destroy (void *cls, struct GNUNET_SERVER_Client *client, | 439 | GST_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 | */ |
499 | static int | 501 | static int |
500 | start_peer (struct Peer *peer) | 502 | start_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 | */ |
516 | static int | 518 | static int |
517 | stop_peer (struct Peer *peer) | 519 | stop_peer (struct Peer *peer) |