gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 193/205: unit1303: fix compiler warning


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 193/205: unit1303: fix compiler warning
Date: Thu, 20 Apr 2017 16:22:13 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.

commit 05c9f42e52d02448664d794cb64a91f36ac39296
Author: Marcel Raad <address@hidden>
AuthorDate: Sun Apr 16 13:54:21 2017 +0200

    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[] = {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]