Ver código fonte

Add const
https://randomascii.wordpress.com/2017/01/08/add-a-const-here-delete-a-const-there/

pavel.pimenov 7 anos atrás
pai
commit
cf4fc0e306
1 arquivos alterados com 1 adições e 1 exclusões
  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"},