From 690a61db07156089522dc331b96b1fccd463f246 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 24 Oct 2013 10:30:44 +0000 Subject: -fix compiler warning --- src/testcurl/test_get_sendfile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/testcurl/test_get_sendfile.c') diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c index 7a73f08d..5443801a 100644 --- 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", -- cgit v1.2.3