summaryrefslogtreecommitdiff
path: root/src/daemon/minimal_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/minimal_example.c')
-rw-r--r--src/daemon/minimal_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/minimal_example.c b/src/daemon/minimal_example.c
index badff7a2..68b4a3d6 100644
--- a/src/daemon/minimal_example.c
+++ b/src/daemon/minimal_example.c
@@ -50,13 +50,13 @@ ahc_echo (void *cls,
if (0 != strcmp (method, "GET"))
return MHD_NO; /* unexpected method */
- if (&aptr != *ptr)
+ if (&aptr != *ptr)
{
/* do never respond on first call */
*ptr = &aptr;
return MHD_YES;
}
- *ptr = NULL; /* reset when done */
+ *ptr = NULL; /* reset when done */
response = MHD_create_response_from_data (strlen (me),
(void *) me, MHD_NO, MHD_NO);
ret = MHD_queue_response (connection, MHD_HTTP_OK, response);