gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 136/205: ssh: fix narrowing conversion warning


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 136/205: ssh: fix narrowing conversion warning
Date: Thu, 20 Apr 2017 16:21:16 +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 e358a626f8e8f2f8e35f83d5021bed8fc6567149
Author: Marcel Raad <address@hidden>
AuthorDate: Thu Mar 30 18:41:50 2017 +0200

    ssh: fix narrowing conversion warning
    
    'left' is used as time_t but declared as long.
    MinGW complains:
    error: conversion to 'long int' from 'time_t {aka long long int}' may alter
    its value [-Werror=conversion]
    Changed the declaration to time_t.
---
 lib/ssh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ssh.c b/lib/ssh.c
index 6cd5d8769..72fa06af7 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -2822,7 +2822,7 @@ static CURLcode ssh_block_statemach(struct connectdata 
*conn,
 
   while((sshc->state != SSH_STOP) && !result) {
     bool block;
-    long left;
+    time_t left;
     struct timeval now = Curl_tvnow();
 
     result = ssh_statemach_act(conn, &block);

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



reply via email to

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