Merge pull request #1672 from cesanta/webui-push-rest

Change argument of %M handler to mg_pfn_t as in huge_response
This commit is contained in:
Sergey Lyubka authored and GitHub committed 2022-08-16 11:55:33 +01:00
commit 5f36b41785
1 file changed
+1 -1
+1 -1
View File
@@ -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) {