gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37965 - libmicrohttpd/doc/examples


From: gnunet
Subject: [GNUnet-SVN] r37965 - libmicrohttpd/doc/examples
Date: Wed, 21 Sep 2016 18:18:00 +0200

Author: Karlson2k
Date: 2016-09-21 18:18:00 +0200 (Wed, 21 Sep 2016)
New Revision: 37965

Modified:
   libmicrohttpd/doc/examples/responseheaders.c
Log:
Fixed compiling examples on old compilers.

Modified: libmicrohttpd/doc/examples/responseheaders.c
===================================================================
--- libmicrohttpd/doc/examples/responseheaders.c        2016-09-21 10:56:28 UTC 
(rev 37964)
+++ libmicrohttpd/doc/examples/responseheaders.c        2016-09-21 16:18:00 UTC 
(rev 37965)
@@ -36,12 +36,12 @@
   if ( (-1 == (fd = open (FILENAME, O_RDONLY))) ||
        (0 != fstat (fd, &sbuf)) )
     {
+      const char *errorstr =
+        "<html><body>An internal server error has occured!\
+                              </body></html>";
       /* error accessing file */
       if (fd != -1)
        (void) close (fd);
-      const char *errorstr =
-        "<html><body>An internal server error has occured!\
-                              </body></html>";
       response =
        MHD_create_response_from_buffer (strlen (errorstr),
                                         (void *) errorstr,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]