From 497d8f25a1d73889dcb2a20b98d981e788882623 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Sun, 4 Dec 2022 19:16:34 -0300 Subject: [PATCH] Update README.md --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 6e4d7d9d..5a6b565c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -42,7 +42,7 @@ into the source code tree static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { struct mg_http_serve_opts opts = {.root_dir = "."}; // Serve local dir - if (ev == MG_EV_HTTP_MSG) mg_http_serve_dir(c, ev_data, &opts); + if (ev == MG_EV_HTTP_MSG) mg_http_serve_dir(c, (struct mg_http_message *)ev_data, &opts); } ...