[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: Fixed examples using 'enum MHD_Re
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: Fixed examples using 'enum MHD_Result'. |
Date: |
Sat, 25 Jul 2020 05:21:46 +0200 |
This is an automated email from the git hooks/post-receive script.
silvioprog pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 6c53cad4 Fixed examples using 'enum MHD_Result'.
6c53cad4 is described below
commit 6c53cad4eca77f698fd40a2e821340efdeaa8c9c
Author: silvioprog <silvioprog@gmail.com>
AuthorDate: Sat Jul 25 00:07:43 2020 -0300
Fixed examples using 'enum MHD_Result'.
---
doc/chapters/basicauthentication.inc | 1 +
doc/examples/basicauthentication.c | 2 +-
doc/libmicrohttpd.texi | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/doc/chapters/basicauthentication.inc
b/doc/chapters/basicauthentication.inc
index cfcc96ff..ec606f3e 100644
--- a/doc/chapters/basicauthentication.inc
+++ b/doc/chapters/basicauthentication.inc
@@ -87,6 +87,7 @@ answer_to_connection (void *cls, struct MHD_Connection
*connection,
char *user;
char *pass;
int fail;
+ enum MHD_Result ret;
struct MHD_Response *response;
if (0 != strcmp (method, MHD_HTTP_METHOD_GET))
diff --git a/doc/examples/basicauthentication.c
b/doc/examples/basicauthentication.c
index 5d156f04..fffc728f 100644
--- a/doc/examples/basicauthentication.c
+++ b/doc/examples/basicauthentication.c
@@ -26,7 +26,7 @@ answer_to_connection (void *cls, struct MHD_Connection
*connection,
char *user;
char *pass;
int fail;
- int ret;
+ enum MHD_Result ret;
struct MHD_Response *response;
(void) cls; /* Unused. Silent compiler warning. */
(void) url; /* Unused. Silent compiler warning. */
diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi
index 150dd048..f9569ace 100644
--- a/doc/libmicrohttpd.texi
+++ b/doc/libmicrohttpd.texi
@@ -2492,7 +2492,7 @@ If returned value is not @code{NULL}, the value must be
@code{MHD_free()}'ed.
If returned value is not @code{NULL}, the value must be @code{MHD_free()}'ed.
@end deftypefun
-@deftypefun {int} MHD_queue_basic_auth_fail_response (struct MHD_Connection
*connection, const char *realm, struct MHD_Response *response)
+@deftypefun {enum MHD_Result} MHD_queue_basic_auth_fail_response (struct
MHD_Connection *connection, const char *realm, struct MHD_Response *response)
Queues a response to request basic authentication from the client.
Return @code{MHD_YES} if successful, otherwise @code{MHD_NO}.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: Fixed examples using 'enum MHD_Result'.,
gnunet <=