From f5ad19d76baa9c59cd553de47bbd910dc28c9137 Mon Sep 17 00:00:00 2001
From: Sergey Lyubka <lsm@cesanta.com>
Date: Wed, 2 Dec 2015 16:53:04 +0000
Subject: [PATCH] Fix g++ build for mongoose example

    PUBLISHED_FROM=c581f33e26819d05c9b8484c9dc10c2a3615a34a
---
 examples/simplest_web_server/simplest_web_server.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/simplest_web_server/simplest_web_server.c b/examples/simplest_web_server/simplest_web_server.c
index af0b3fdad..0df996a9b 100644
--- a/examples/simplest_web_server/simplest_web_server.c
+++ b/examples/simplest_web_server/simplest_web_server.c
@@ -8,7 +8,7 @@ static struct mg_serve_http_opts s_http_server_opts;
 
 static void ev_handler(struct mg_connection *nc, int ev, void *p) {
   if (ev == MG_EV_HTTP_REQUEST) {
-    mg_serve_http(nc, p, s_http_server_opts);
+    mg_serve_http(nc, (struct http_message *) p, s_http_server_opts);
   }
 }
 
-- 
GitLab