@@ -1107,11 +1107,11 @@
* called again.
*/
static inline void
-compute_earliest_wakeup(interval_t *earliest, interval_t seconds_from_now)
+compute_earliest_wakeup(interval_t *earliest, time_t seconds_from_now)
{
if (seconds_from_now < *earliest)
{
- *earliest = seconds_from_now;
+ *earliest = (interval_t)seconds_from_now;
}
if (*earliest < 0)
{
@@ -1119,11 +1119,6 @@
}
}
-#if defined(__GNUC__) || defined(__clang__)
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wconversion"
-#endif
-
/*
* Return true if "lame duck" or retiring key has expired and can
* no longer be used.
@@ -1338,7 +1333,7 @@
/* For now we hardcode this to be 16 for the software based data channel
* DCO based implementations/HW implementation might adjust this number
* based on their expected speed */
- const int future_key_count = 16;
+ const uint8_t future_key_count = 16;
int key_direction = server ? KEY_DIRECTION_INVERSE : KEY_DIRECTION_NORMAL;
struct key_direction_state kds;
@@ -1785,6 +1780,11 @@
return true;
}
+#if defined(__GNUC__) || defined(__clang__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wconversion"
+#endif
+
static bool
write_string(struct buffer *buf, const char *str, const int maxlen)
{