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/core | |
parent | ae8cb91d9961899075a892a3110204bc139c2eb6 (diff) | |
download | gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.tar.gz gnunet-e8cf81fdb3fdaef59b49da8f6e952a3225ab326e.zip |
fixing compiler warnings
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gnunet-service-core_kx.c | 10 | ||||
-rw-r--r-- | src/core/gnunet-service-core_sessions.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index 9bb5af100..6a1924e54 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c | |||
@@ -916,9 +916,9 @@ GSC_KX_handle_ephemeral_key (struct GSC_KeyExchangeInfo *kx, | |||
916 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 916 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
917 | _("Ephemeral key message from peer `%s' rejected as its validity range does not match our system time (%llu not in [%llu,%llu]).\n"), | 917 | _("Ephemeral key message from peer `%s' rejected as its validity range does not match our system time (%llu not in [%llu,%llu]).\n"), |
918 | GNUNET_i2s (&kx->peer), | 918 | GNUNET_i2s (&kx->peer), |
919 | now.abs_value_us, | 919 | (unsigned long long) now.abs_value_us, |
920 | start_t.abs_value_us, | 920 | (unsigned long long) start_t.abs_value_us, |
921 | end_t.abs_value_us); | 921 | (unsigned long long) end_t.abs_value_us); |
922 | return; | 922 | return; |
923 | } | 923 | } |
924 | kx->other_ephemeral_key = m->ephemeral_key; | 924 | kx->other_ephemeral_key = m->ephemeral_key; |
@@ -1395,7 +1395,7 @@ GSC_KX_encrypt_and_transmit (struct GSC_KeyExchangeInfo *kx, | |||
1395 | used - ENCRYPTED_HEADER_SIZE)); | 1395 | used - ENCRYPTED_HEADER_SIZE)); |
1396 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1396 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1397 | "Encrypted %u bytes for %s\n", | 1397 | "Encrypted %u bytes for %s\n", |
1398 | used - ENCRYPTED_HEADER_SIZE, | 1398 | (unsigned int) (used - ENCRYPTED_HEADER_SIZE), |
1399 | GNUNET_i2s (&kx->peer)); | 1399 | GNUNET_i2s (&kx->peer)); |
1400 | derive_auth_key (&auth_key, | 1400 | derive_auth_key (&auth_key, |
1401 | &kx->encrypt_key, | 1401 | &kx->encrypt_key, |
@@ -1517,7 +1517,7 @@ GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx, | |||
1517 | return; | 1517 | return; |
1518 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1518 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1519 | "Decrypted %u bytes from %s\n", | 1519 | "Decrypted %u bytes from %s\n", |
1520 | size - ENCRYPTED_HEADER_SIZE, | 1520 | (unsigned int) (size - ENCRYPTED_HEADER_SIZE), |
1521 | GNUNET_i2s (&kx->peer)); | 1521 | GNUNET_i2s (&kx->peer)); |
1522 | pt = (struct EncryptedMessage *) buf; | 1522 | pt = (struct EncryptedMessage *) buf; |
1523 | 1523 | ||
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c index 890499394..0a547be1b 100644 --- a/src/core/gnunet-service-core_sessions.c +++ b/src/core/gnunet-service-core_sessions.c | |||
@@ -706,7 +706,7 @@ try_transmission (struct Session *session) | |||
706 | "Soliciting messages (excess %d, maxpc %d, message size %u, deadline %s)\n", | 706 | "Soliciting messages (excess %d, maxpc %d, message size %u, deadline %s)\n", |
707 | excess, | 707 | excess, |
708 | maxpc, | 708 | maxpc, |
709 | msize, | 709 | (unsigned int) msize, |
710 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_remaining (min_deadline), | 710 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_remaining (min_deadline), |
711 | GNUNET_YES)); | 711 | GNUNET_YES)); |
712 | solicit_messages (session, | 712 | solicit_messages (session, |