From 4f012d6bc67510f2ff618e06cc9e7c3847d18c78 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Mon, 15 Aug 2022 16:04:17 -0300 Subject: [PATCH] Change argument of %M handler to mg_pfn_t as in huge_response --- examples/webui-push-rest/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/webui-push-rest/main.c b/examples/webui-push-rest/main.c index b9e44af4..e057132c 100644 --- a/examples/webui-push-rest/main.c +++ b/examples/webui-push-rest/main.c @@ -26,7 +26,7 @@ static long getparam(struct mg_http_message *hm, const char *json_path) { return dv; } -static size_t printdata(void (*out)(char, void *), void *ptr, va_list *ap) { +static size_t printdata(mg_pfn_t out, void *ptr, va_list *ap) { const char *comma = ""; size_t n = 0; for (int i = 0; i < DATA_SIZE; ++i) {