Browse Source

Fix compile error for MG_LEGACY_INTERFACES

This interface is untested for years and going to be removed soon
bel2125 4 years ago
parent
commit
59902c5010
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/civetweb.c

+ 1 - 5
src/civetweb.c

@@ -14424,7 +14424,7 @@ handle_request(struct mg_connection *conn)
 			    deprecated_websocket_ready_wrapper,
 			    deprecated_websocket_data_wrapper,
 			    NULL,
-			    conn->phys_ctx->callbacks);
+			    &conn->phys_ctx->callbacks);
 #else
 			mg_send_http_error(conn, 404, "%s", "Not found");
 #endif
@@ -18549,10 +18549,6 @@ worker_thread_run(struct mg_connection *conn)
 	int thread_index;
 	struct mg_workerTLS tls;
 
-#if defined(MG_LEGACY_INTERFACE)
-	uint32_t addr;
-#endif
-
 	mg_set_thread_name("worker");
 
 	tls.is_master = 0;