[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 93/254: unit1305: fix compiler warning
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 93/254: unit1305: fix compiler warning |
Date: |
Sat, 17 Jun 2017 16:52:05 +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 ad8c1472fec946a9bae2d688bbadb7d77123b147
Author: Marcel Raad <address@hidden>
AuthorDate: Fri May 5 11:44:22 2017 +0200
unit1305: fix compiler warning
calloc and ai_addrlen expect different (usually unsigned) types.
---
tests/unit/unit1305.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/tests/unit/unit1305.c b/tests/unit/unit1305.c
index db0a44c5f..b958d0434 100644
--- a/tests/unit/unit1305.c
+++ b/tests/unit/unit1305.c
@@ -76,9 +76,6 @@ static void unit_stop(void)
static Curl_addrinfo *fake_ai(void)
{
static Curl_addrinfo *ai;
- int ss_size;
-
- ss_size = sizeof(struct sockaddr_in);
ai = calloc(1, sizeof(Curl_addrinfo));
if(!ai)
@@ -90,7 +87,7 @@ static Curl_addrinfo *fake_ai(void)
return NULL;
}
- ai->ai_addr = calloc(1, ss_size);
+ ai->ai_addr = calloc(1, sizeof(struct sockaddr_in));
if(!ai->ai_addr) {
free(ai->ai_canonname);
free(ai);
@@ -98,7 +95,7 @@ static Curl_addrinfo *fake_ai(void)
}
ai->ai_family = AF_INET;
- ai->ai_addrlen = ss_size;
+ ai->ai_addrlen = sizeof(struct sockaddr_in);
return ai;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 202/254: typecheck-gcc.h: check CURLINFO_CERTINFO, (continued)
- [GNUnet-SVN] [gnurl] 202/254: typecheck-gcc.h: check CURLINFO_CERTINFO, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 230/254: test1521: make the code < 80 columns wide, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 72/254: ssh: fix compiler warning from e40e9d7f0de, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 50/254: curl_setup: Ensure no more than one IDN lib is enabled, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 120/254: formboundary: convert assert into run-time check, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 114/254: tool_msgs: remove wrong cast, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 98/254: tests: fix -Wcast-qual warnings, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 228/254: typecheck-gcc: allow CURLOPT_STDERR to be NULL too, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 212/254: tool_util: remove unused tvdiff_secs and remove tool_ prefix, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 143/254: RELEASE-NOTES: synced with eb16305e6, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 93/254: unit1305: fix compiler warning,
gnunet <=
- [GNUnet-SVN] [gnurl] 226/254: test1538: added "verbose logs" keyword, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 239/254: examples/multi-uv.c: fix deprecated symbol, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 159/254: cmake: remove unused variables: GNUTLS_ENABLED, NSS_ENABLED, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 173/254: TODO: 6.4 is done, send telnet data in chunks, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 221/254: BINDINGS: add Ring binding, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 216/254: x509asn1: fix implicit-fallthrough warning with GCC 7, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 179/254: mbedtls: fix variable shadow warning, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 246/254: FindWin32CACert: Use a temporary buffer on the stack, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 232/254: README.md: show the coverall coverage on github, gnunet, 2017/06/17
- [GNUnet-SVN] [gnurl] 106/254: tool_parsecfg: fix -Wcast-qual warning, gnunet, 2017/06/17