[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r37777 - libmicrohttpd/doc/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r37777 - libmicrohttpd/doc/examples |
Date: |
Wed, 24 Aug 2016 14:36:32 +0200 |
Author: grothoff
Date: 2016-08-24 14:36:32 +0200 (Wed, 24 Aug 2016)
New Revision: 37777
Modified:
libmicrohttpd/doc/examples/tlsauthentication.c
Log:
-nicer indentation
Modified: libmicrohttpd/doc/examples/tlsauthentication.c
===================================================================
--- libmicrohttpd/doc/examples/tlsauthentication.c 2016-08-24 11:37:46 UTC
(rev 37776)
+++ libmicrohttpd/doc/examples/tlsauthentication.c 2016-08-24 12:36:32 UTC
(rev 37777)
@@ -83,6 +83,7 @@
return 0;
}
+
static char *
load_file (const char *filename)
{
@@ -91,15 +92,15 @@
long size;
size = get_file_size (filename);
- if (size == 0)
+ if (0 == size)
return NULL;
fp = fopen (filename, "rb");
- if (!fp)
+ if (! fp)
return NULL;
buffer = malloc (size + 1);
- if (!buffer)
+ if (! buffer)
{
fclose (fp);
return NULL;
@@ -116,6 +117,7 @@
return buffer;
}
+
static int
ask_for_authentication (struct MHD_Connection *connection, const char *realm)
{
@@ -124,7 +126,7 @@
char *headervalue;
const char *strbase = "Basic realm=";
- response = MHD_create_response_from_buffer (0, NULL,
+ response = MHD_create_response_from_buffer (0, NULL,
MHD_RESPMEM_PERSISTENT);
if (!response)
return MHD_NO;
@@ -198,7 +200,7 @@
const char *page = "<html><body>A secret.</body></html>";
response =
- MHD_create_response_from_buffer (strlen (page), (void *) page,
+ MHD_create_response_from_buffer (strlen (page), (void *) page,
MHD_RESPMEM_PERSISTENT);
if (!response)
return MHD_NO;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r37777 - libmicrohttpd/doc/examples,
gnunet <=