aboutsummaryrefslogtreecommitdiff
path: root/src/examples/authorization_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/authorization_example.c')
-rw-r--r--src/examples/authorization_example.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/authorization_example.c b/src/examples/authorization_example.c
index f9500325..e7a099ed 100644
--- a/src/examples/authorization_example.c
+++ b/src/examples/authorization_example.c
@@ -45,7 +45,7 @@ ahc_echo (void *cls,
45 const char *url, 45 const char *url,
46 const char *method, 46 const char *method,
47 const char *version, 47 const char *version,
48 const char *upload_data, size_t *upload_data_size, void **ptr) 48 const char *upload_data, size_t *upload_data_size, void **req_cls)
49{ 49{
50 static int aptr; 50 static int aptr;
51 const char *me = cls; 51 const char *me = cls;
@@ -61,13 +61,13 @@ ahc_echo (void *cls,
61 61
62 if (0 != strcmp (method, "GET")) 62 if (0 != strcmp (method, "GET"))
63 return MHD_NO; /* unexpected method */ 63 return MHD_NO; /* unexpected method */
64 if (&aptr != *ptr) 64 if (&aptr != *req_cls)
65 { 65 {
66 /* do never respond on first call */ 66 /* do never respond on first call */
67 *ptr = &aptr; 67 *req_cls = &aptr;
68 return MHD_YES; 68 return MHD_YES;
69 } 69 }
70 *ptr = NULL; /* reset when done */ 70 *req_cls = NULL; /* reset when done */
71 71
72 /* require: "Aladdin" with password "open sesame" */ 72 /* require: "Aladdin" with password "open sesame" */
73 pass = NULL; 73 pass = NULL;