Hi there,
mark some stuff const or static in uwsgi.c and utils.c.
thanks,
riccardo
diff -r a0987a00fc28 utils.c
--- a/utils.c Mon Dec 26 08:26:14 2011 +0100
+++ b/utils.c Mon Dec 26 20:14:02 2011 +0100
@@ -5,7 +5,7 @@
extern char **environ;
/* statistically ordered */
-struct http_status_codes hsc[] = {
+const struct http_status_codes hsc[] = {
{"200", "OK"},
{"302", "Found"},
{"404", "Not Found"},
@@ -3265,7 +3265,7 @@
cap_value_t value;
};
-static struct uwsgi_cap uwsgi_cap_list[] = {
+static const struct uwsgi_cap uwsgi_cap_list[] = {
{ "chown", CAP_CHOWN},
{ "dac_override", CAP_DAC_OVERRIDE},
{ "dac_read_search", CAP_DAC_READ_SEARCH},
diff -r a0987a00fc28 uwsgi.c
--- a/uwsgi.c Mon Dec 26 08:26:14 2011 +0100
+++ b/uwsgi.c Mon Dec 26 20:14:02 2011 +0100
@@ -34,7 +34,7 @@
static char *short_options = NULL;
-static char *base_short_options = "s:S:p:t:x:d:l:v:b:mcaCTiMhrR:z:A:Q:Ly:";
+static const char *base_short_options = "s:S:p:t:x:d:l:v:b:mcaCTiMhrR:z:A:Q:Ly:";
UWSGI_DECLARE_EMBEDDED_PLUGINS;
@@ -4136,7 +4136,7 @@
-struct uwsgi_help_item main_help[] = {
+static struct uwsgi_help_item main_help[] = {
{"socket <name>", "path (or name) of UNIX/TCP socket to bind to"},
{"listen <num>", "set socket listen queue to <n> (default 100, maximum is system dependent)"},
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi