Browse Source

Merge pull request #616 from pavel-pimenov/add-const-08-05-2018

mg_option config_options[] - add const
bel2125 7 năm trước cách đây
mục cha
commit
65bd4ce50c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -2362,7 +2362,7 @@ enum {
 /* Config option name, config types, default value.
 /* Config option name, config types, default value.
  * Must be in the same order as the enum const above.
  * Must be in the same order as the enum const above.
  */
  */
-static struct mg_option config_options[] = {
+static const struct mg_option config_options[] = {
 
 
     /* Once for each server */
     /* Once for each server */
     {"listening_ports", MG_CONFIG_TYPE_STRING_LIST, "8080"},
     {"listening_ports", MG_CONFIG_TYPE_STRING_LIST, "8080"},