From 05c9f42e52d02448664d794cb64a91f36ac39296 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 16 Apr 2017 13:54:21 +0200 Subject: [PATCH] unit1303: fix compiler warning MinGW-w64 complains: warning: conversion to 'long int' from 'time_t {aka long long int}' may alter its value [-Wconversion] Fix this by using the correct type. --- tests/unit/unit1303.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/unit1303.c b/tests/unit/unit1303.c index c39e147aa..10206ff6b 100644 --- a/tests/unit/unit1303.c +++ b/tests/unit/unit1303.c @@ -64,14 +64,14 @@ struct timetest { int timeout_ms; int connecttimeout_ms; bool connecting; - long result; + time_t result; const char *comment; }; UNITTEST_START { struct timeval now; - long timeout; + time_t timeout; unsigned int i; const struct timetest run[] = {