summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-04-16 13:54:21 +0200
committerMarcel Raad <raad@teamviewer.com>2017-04-16 13:54:21 +0200
commit05c9f42e52d02448664d794cb64a91f36ac39296 (patch)
tree9eea5225905f0e0ed6dae7b5f44167ac00e1d037
parent2af10b2c0b6a4ce34b5c6649387d2a1286a6de02 (diff)
downloadgnurl-05c9f42e52d02448664d794cb64a91f36ac39296.tar.gz
gnurl-05c9f42e52d02448664d794cb64a91f36ac39296.tar.bz2
gnurl-05c9f42e52d02448664d794cb64a91f36ac39296.zip
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.
-rw-r--r--tests/unit/unit1303.c4
1 files 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[] = {