From c3238f4d0b561935a8838a42d807abd7650581ed Mon Sep 17 00:00:00 2001 From: hagen Date: Thu, 17 Dec 2015 07:58:09 +0000 Subject: [PATCH] * fix warnings of type mismatch (#298) --- Destination.h | 2 +- I2NPProtocol.h | 2 +- SSUData.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Destination.h b/Destination.h index d38fe30e..f75e3fc0 100644 --- a/Destination.h +++ b/Destination.h @@ -28,8 +28,8 @@ namespace client const int PUBLISH_CONFIRMATION_TIMEOUT = 5; // in seconds const int LEASESET_REQUEST_TIMEOUT = 5; // in seconds const int MAX_LEASESET_REQUEST_TIMEOUT = 40; // in seconds - const int MAX_NUM_FLOODFILLS_PER_REQUEST = 7; const int DESTINATION_CLEANUP_TIMEOUT = 20; // in minutes + const unsigned int MAX_NUM_FLOODFILLS_PER_REQUEST = 7; // I2CP const char I2CP_PARAM_INBOUND_TUNNEL_LENGTH[] = "inbound.length"; diff --git a/I2NPProtocol.h b/I2NPProtocol.h index a3f75d7a..a38ff23b 100644 --- a/I2NPProtocol.h +++ b/I2NPProtocol.h @@ -97,7 +97,7 @@ namespace i2p const uint8_t DATABASE_LOOKUP_TYPE_ROUTERINFO_LOOKUP = 0x08; // 1000 const uint8_t DATABASE_LOOKUP_TYPE_EXPLORATORY_LOOKUP = 0x0C; // 1100 - const int MAX_NUM_TRANSIT_TUNNELS = 2500; + const unsigned int MAX_NUM_TRANSIT_TUNNELS = 2500; namespace tunnel { diff --git a/SSUData.h b/SSUData.h index d571bed3..392bfce6 100644 --- a/SSUData.h +++ b/SSUData.h @@ -27,8 +27,8 @@ namespace transport const int RESEND_INTERVAL = 3; // in seconds const int MAX_NUM_RESENDS = 5; const int DECAY_INTERVAL = 20; // in seconds - const int MAX_NUM_RECEIVED_MESSAGES = 1000; // how many msgID we store for duplicates check const int INCOMPLETE_MESSAGES_CLEANUP_TIMEOUT = 30; // in seconds + const unsigned int MAX_NUM_RECEIVED_MESSAGES = 1000; // how many msgID we store for duplicates check // data flags const uint8_t DATA_FLAG_EXTENDED_DATA_INCLUDED = 0x02; const uint8_t DATA_FLAG_WANT_REPLY = 0x04;