[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11713 - libmicrohttpd/src/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11713 - libmicrohttpd/src/examples |
Date: |
Sun, 13 Jun 2010 11:06:34 +0200 |
Author: grothoff
Date: 2010-06-13 11:06:34 +0200 (Sun, 13 Jun 2010)
New Revision: 11713
Modified:
libmicrohttpd/src/examples/https_fileserver_example.c
Log:
better
Modified: libmicrohttpd/src/examples/https_fileserver_example.c
===================================================================
--- libmicrohttpd/src/examples/https_fileserver_example.c 2010-06-13
09:05:57 UTC (rev 11712)
+++ libmicrohttpd/src/examples/https_fileserver_example.c 2010-06-13
09:06:34 UTC (rev 11713)
@@ -105,6 +105,13 @@
return fread (buf, 1, max, file);
}
+static void
+file_free_callback (void *cls)
+{
+ FILE *file = cls;
+ fclose (file);
+}
+
/* HTTP access handler call back */
static int
http_ahc (void *cls,
@@ -148,8 +155,7 @@
{
response = MHD_create_response_from_callback (buf.st_size, 32 * 1024,
/* 32k PAGE_NOT_FOUND size */
&file_reader, file,
-
(MHD_ContentReaderFreeCallback)
- & fclose);
+ &file_free_callback);
if (response == NULL)
{
fclose (file);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11713 - libmicrohttpd/src/examples,
gnunet <=