gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 218/254: libtest: fix int-in-bool-context warnings


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 218/254: libtest: fix int-in-bool-context warnings
Date: Sat, 17 Jun 2017 16:54:10 +0200

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

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

commit a1b275a41ec5d479b3701ac618d2c9c11d5cedc3
Author: Marcel Raad <address@hidden>
AuthorDate: Sat Jun 3 20:18:34 2017 +0200

    libtest: fix int-in-bool-context warnings
    
    GCC 7 complained:
    ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
---
 tests/libtest/lib571.c         | 2 +-
 tests/libtest/libntlmconnect.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/libtest/lib571.c b/tests/libtest/lib571.c
index 40a78fa84..f19b643ff 100644
--- a/tests/libtest/lib571.c
+++ b/tests/libtest/lib571.c
@@ -56,7 +56,7 @@ static size_t rtp_write(void *ptr, size_t size, size_t nmemb, 
void *stream)
   int channel = RTP_PKT_CHANNEL(data);
   int message_size;
   int coded_size = RTP_PKT_LENGTH(data);
-  size_t failure = (size * nmemb) ? 0 : 1;
+  size_t failure = (size && nmemb) ? 0 : 1;
   int i;
   (void)stream;
 
diff --git a/tests/libtest/libntlmconnect.c b/tests/libtest/libntlmconnect.c
index 40a837ca6..2ae7bb2fb 100644
--- a/tests/libtest/libntlmconnect.c
+++ b/tests/libtest/libntlmconnect.c
@@ -44,7 +44,7 @@ static size_t callback(char *ptr, size_t size, size_t nmemb, 
void *data)
   long longdata;
   CURLcode code;
 
-  const size_t failure = (size * nmemb) ? 0 : 1;
+  const size_t failure = (size && nmemb) ? 0 : 1;
 
   char *output = malloc(size * nmemb + 1);
   if(!output) {

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



reply via email to

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