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 | |
parent | ae8cb91d9961899075a892a3110204bc139c2eb6 (diff) | |
download | gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.tar.gz gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.zip |
fixing compiler warnings
Diffstat (limited to 'src/testbed')
-rw-r--r-- | src/testbed/gnunet-helper-testbed.c | 3 | ||||
-rw-r--r-- | src/testbed/gnunet-service-testbed_peers.c | 14 |
2 files changed, 10 insertions, 7 deletions
diff --git a/src/testbed/gnunet-helper-testbed.c b/src/testbed/gnunet-helper-testbed.c index e27e21588..f3c56eb9d 100644 --- a/src/testbed/gnunet-helper-testbed.c +++ b/src/testbed/gnunet-helper-testbed.c | |||
@@ -513,7 +513,8 @@ read_task (void *cls) | |||
513 | GNUNET_SCHEDULER_shutdown (); | 513 | GNUNET_SCHEDULER_shutdown (); |
514 | return; | 514 | return; |
515 | } | 515 | } |
516 | LOG_DEBUG ("Read %u bytes\n", sread); | 516 | LOG_DEBUG ("Read %u bytes\n", |
517 | (unsigned int) sread); | ||
517 | if (GNUNET_OK != | 518 | if (GNUNET_OK != |
518 | GNUNET_SERVER_mst_receive (tokenizer, NULL, buf, sread, GNUNET_NO, | 519 | GNUNET_SERVER_mst_receive (tokenizer, NULL, buf, sread, GNUNET_NO, |
519 | GNUNET_NO)) | 520 | GNUNET_NO)) |
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) |