浏览代码

passing const struct mg_config

Sergey Lyubka 15 年之前
父节点
当前提交
5651657ac6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mongoose.h

+ 1 - 1
mongoose.h

@@ -107,7 +107,7 @@ struct mg_config {
 // It creates a serving thread, and returns a context structure that
 // can be used to stop the server.
 // After calling mg_start(), configuration data must not be changed.
-struct mg_context *mg_start(struct mg_config *);
+struct mg_context *mg_start(const struct mg_config *);
 
 
 // Stop the web server.