gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 12/150: configure: fix the check for unsigned time_


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 12/150: configure: fix the check for unsigned time_t
Date: Fri, 30 Mar 2018 16:47:46 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 9a230ba419eb3bd74c82dd7560cbb09b4b027b8a
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Jan 25 22:32:57 2018 +0100

    configure: fix the check for unsigned time_t
    
    Assign the time_t variable negative value and then check if it is
    greater than zero, which will evaluate true for unsigned time_t but
    false for signed time_t.
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 76fa93d1b..d305e9693 100755
--- a/configure.ac
+++ b/configure.ac
@@ -3488,7 +3488,7 @@ AC_RUN_IFELSE([
   AC_LANG_SOURCE([[
   #include <time.h>
   #include <limits.h>
-  time_t t = ULONG_MAX;
+  time_t t = -1;
   return (t > 0);
   ]])] ,[
   AC_MSG_RESULT([yes])

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



reply via email to

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