]> granicus.if.org Git - curl/commitdiff
unit1303: fix compiler warning
authorMarcel Raad <raad@teamviewer.com>
Sun, 16 Apr 2017 11:54:21 +0000 (13:54 +0200)
committerMarcel Raad <raad@teamviewer.com>
Sun, 16 Apr 2017 11:54:21 +0000 (13:54 +0200)
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

index c39e147aa3058c043ec41b320b4f56b051d66cbb..10206ff6b4449772f347996d77be8f1fab5cf4ed 100644 (file)
@@ -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[] = {