gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 210/219: udpateconninfo: mark variable unused


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 210/219: udpateconninfo: mark variable unused
Date: Wed, 22 May 2019 19:19:09 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 528b284e4b145ff38c5ab87b4d6daa5d796fd938
Author: Daniel Gustafsson <address@hidden>
AuthorDate: Tue May 21 09:42:22 2019 +0200

    udpateconninfo: mark variable unused
    
    When compiling without getpeername() or getsockname(), the sockfd
    paramter to Curl_udpateconninfo() became unused after commit e91e481612
    added ifdef guards.
    
    Closes #3910
    Fixes https://curl.haxx.se/dev/log.cgi?id=20190520172441-32196
    Reviewed-by: Marcel Raad, Daniel Stenberg
---
 lib/connect.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/connect.c b/lib/connect.c
index b106fa872..002535b42 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -726,6 +726,8 @@ void Curl_updateconninfo(struct connectdata *conn, 
curl_socket_t sockfd)
     }
 #endif
   }
+#else /* !HAVE_GETSOCKNAME && !HAVE_GETPEERNAME */
+  (void)sockfd; /* unused */
 #endif
 
   /* persist connection info in session handle */

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



reply via email to

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