diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-10-06 23:01:42 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-10-07 12:43:25 +0200 |
| commit | b9d9328956c656f0e9a007b8810cadafbe531c48 (patch) | |
| tree | 028ad88fd37551fcd6ad0bf29a3ce9af745e687c /examples | |
| parent | db9cb051c4ee05c07ab32dfed5bae8b7dc0916bd (diff) | |
WIP chunk encodingchunk
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/async/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/async/main.c b/examples/async/main.c index dbf69a8..fbd766e 100644 --- a/examples/async/main.c +++ b/examples/async/main.c @@ -86,9 +86,9 @@ end: } static int step(const struct http_payload *const pl, - struct http_response *const r, void *const user, void *step_args) + struct http_response *const r, void *const user, void *args) { - unsigned *const cnt = step_args; + unsigned *const cnt = args; const unsigned max = 10; fprintf(stderr, "%s: step %u\n", __func__, *cnt); @@ -113,7 +113,7 @@ static int hello(const struct http_payload *const pl, *r = (const struct http_response) { .step.payload = step, - .step_args = cnt + .args = cnt }; *cnt = 0; |
