[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r30403 - libmicrohttpd/src/testcurl
From: |
gnunet |
Subject: |
[GNUnet-SVN] r30403 - libmicrohttpd/src/testcurl |
Date: |
Thu, 24 Oct 2013 12:30:44 +0200 |
Author: grothoff
Date: 2013-10-24 12:30:44 +0200 (Thu, 24 Oct 2013)
New Revision: 30403
Modified:
libmicrohttpd/src/testcurl/test_get_sendfile.c
Log:
-fix compiler warning
Modified: libmicrohttpd/src/testcurl/test_get_sendfile.c
===================================================================
--- libmicrohttpd/src/testcurl/test_get_sendfile.c 2013-10-24 08:41:04 UTC
(rev 30402)
+++ libmicrohttpd/src/testcurl/test_get_sendfile.c 2013-10-24 10:30:44 UTC
(rev 30403)
@@ -406,7 +406,7 @@
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 @@
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",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r30403 - libmicrohttpd/src/testcurl,
gnunet <=