diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-24 10:30:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-24 10:30:44 +0000 |
commit | 690a61db07156089522dc331b96b1fccd463f246 (patch) | |
tree | 21060a44f2e6a0616cb370f51830d5275fd9f11f | |
parent | 8e6b1e789978929efd84aedf44943514dfe1a7e3 (diff) | |
download | libmicrohttpd-690a61db07156089522dc331b96b1fccd463f246.tar.gz libmicrohttpd-690a61db07156089522dc331b96b1fccd463f246.zip |
-fix compiler warning
-rw-r--r-- | src/testcurl/test_get_sendfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 () | |||
406 | if (di == NULL) | 406 | if (di == NULL) |
407 | return 65536; | 407 | return 65536; |
408 | 408 | ||
409 | if (0 != getsockname(di->listen_fd, &addr, &addr_len)) | 409 | if (0 != getsockname(di->listen_fd, (struct sockaddr *) &addr, &addr_len)) |
410 | return 131072; | 410 | return 131072; |
411 | 411 | ||
412 | if (addr.sin_family != AF_INET) | 412 | if (addr.sin_family != AF_INET) |
@@ -455,10 +455,10 @@ main (int argc, char *const *argv) | |||
455 | unsigned int errorCount = 0; | 455 | unsigned int errorCount = 0; |
456 | const char *tmp; | 456 | const char *tmp; |
457 | FILE *f; | 457 | FILE *f; |
458 | 458 | ||
459 | if ( (NULL == (tmp = getenv ("TMPDIR"))) && | 459 | if ( (NULL == (tmp = getenv ("TMPDIR"))) && |
460 | (NULL == (tmp = getenv ("TMP"))) ) | 460 | (NULL == (tmp = getenv ("TMP"))) ) |
461 | tmp = "/tmp"; | 461 | tmp = "/tmp"; |
462 | sourcefile = malloc (strlen (tmp) + 32); | 462 | sourcefile = malloc (strlen (tmp) + 32); |
463 | sprintf (sourcefile, | 463 | sprintf (sourcefile, |
464 | "%s%s%s", | 464 | "%s%s%s", |