diff options
Diffstat (limited to 'src/daemon/minimal_example.c')
-rw-r--r-- | src/daemon/minimal_example.c | 4 |
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, | |||
50 | 50 | ||
51 | if (0 != strcmp (method, "GET")) | 51 | if (0 != strcmp (method, "GET")) |
52 | return MHD_NO; /* unexpected method */ | 52 | return MHD_NO; /* unexpected method */ |
53 | if (&aptr != *ptr) | 53 | if (&aptr != *ptr) |
54 | { | 54 | { |
55 | /* do never respond on first call */ | 55 | /* do never respond on first call */ |
56 | *ptr = &aptr; | 56 | *ptr = &aptr; |
57 | return MHD_YES; | 57 | return MHD_YES; |
58 | } | 58 | } |
59 | *ptr = NULL; /* reset when done */ | 59 | *ptr = NULL; /* reset when done */ |
60 | response = MHD_create_response_from_data (strlen (me), | 60 | response = MHD_create_response_from_data (strlen (me), |
61 | (void *) me, MHD_NO, MHD_NO); | 61 | (void *) me, MHD_NO, MHD_NO); |
62 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 62 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |