commit 690a61db07156089522dc331b96b1fccd463f246
parent 8e6b1e789978929efd84aedf44943514dfe1a7e3
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 24 Oct 2013 10:30:44 +0000
-fix compiler warning
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
@@ -406,7 +406,7 @@ testUnknownPortGet ()
if (di == NULL)
return 65536;
- if (0 != getsockname(di->listen_fd, &addr, &addr_len))
+ if (0 != getsockname(di->listen_fd, (struct sockaddr *) &addr, &addr_len))
return 131072;
if (addr.sin_family != AF_INET)
@@ -455,10 +455,10 @@ main (int argc, char *const *argv)
unsigned int errorCount = 0;
const char *tmp;
FILE *f;
-
+
if ( (NULL == (tmp = getenv ("TMPDIR"))) &&
(NULL == (tmp = getenv ("TMP"))) )
- tmp = "/tmp";
+ tmp = "/tmp";
sourcefile = malloc (strlen (tmp) + 32);
sprintf (sourcefile,
"%s%s%s",