You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-mail/dovecot/files/dovecot-2.3.13-32-bit-tests...

28 lines
847 B

https://bugs.gentoo.org/764713
https://github.com/dovecot/core/commit/01366bd18ea98bf6979328ff8580488920a33f0c
From 01366bd18ea98bf6979328ff8580488920a33f0c Mon Sep 17 00:00:00 2001
From: Aki Tuomi <aki.tuomi@open-xchange.com>
Date: Thu, 4 Feb 2021 08:44:46 +0200
Subject: [PATCH] lib: test-time-util - Use correct types for test case
Fixes type mismatch on 32-bit systems.
---
src/lib/test-time-util.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/test-time-util.c b/src/lib/test-time-util.c
index cfa322048e..139db0ec5d 100644
--- a/src/lib/test-time-util.c
+++ b/src/lib/test-time-util.c
@@ -358,7 +358,8 @@ static void test_str_to_timeval(void)
{
struct {
const char *str;
- unsigned int tv_sec, tv_usec;
+ time_t tv_sec;
+ suseconds_t tv_usec;
} tests[] = {
{ "0", 0, 0 },
{ "0.0", 0, 0 },