From f35ad319cf1ec76d6904dd64e33ba925a4787140 Mon Sep 17 00:00:00 2001 From: "roberto@voldemort" Date: Mon, 6 Sep 2010 09:03:42 +0200 Subject: [PATCH] other 'c strict' fixes --- ini.c | 4 ++-- ldap.c | 12 ++++++------ ugreen.c | 2 +- uwsgiconfig.py | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ini.c b/ini.c index bf87bd4b..6a18e4c8 100644 --- a/ini.c +++ b/ini.c @@ -30,7 +30,7 @@ char *ini_lstrip(char *line) { off_t i ; char *ptr = line; - for(i=0;ival) ; } - for(i=0;iname);i++) { + for(i=0;i< (int)strlen(aopt->name);i++) { if (aopt->name[i] == '-') { i++; uwsgi_log("%c", toupper( (int) aopt->name[i])); @@ -110,7 +110,7 @@ next: uwsgi_log("uWSGI"); - for(i=0;iname);i++) { + for(i=0;i< (int)strlen(aopt->name);i++) { if (aopt->name[i] == '-') { i++; uwsgi_log("%c", toupper( (int) aopt->name[i])); @@ -160,7 +160,7 @@ void uwsgi_ldap_schema_dump(struct option *lo) { else { uwsgi_log("attributetype ( 1.3.6.1.4.1.35156.17.4.%d NAME 'uWSGI", aopt->val) ; } - for(i=0;iname);i++) { + for(i=0;i< (int)strlen(aopt->name);i++) { if (aopt->name[i] == '-') { i++; uwsgi_log("%c", toupper( (int) aopt->name[i])); @@ -200,7 +200,7 @@ next: uwsgi_log("uWSGI"); - for(i=0;iname);i++) { + for(i=0;i< (int)strlen(aopt->name);i++) { if (aopt->name[i] == '-') { i++; uwsgi_log("%c", toupper( (int) aopt->name[i])); diff --git a/ugreen.c b/ugreen.c index 1c8950be..677c4262 100644 --- a/ugreen.c +++ b/ugreen.c @@ -414,7 +414,7 @@ void u_green_loop(struct uwsgi_server *uwsgi) { for(i=0; iasync_nevents;i++) { - if (uwsgi->async_events[i].ASYNC_FD == uwsgi->serverfd) { + if ( (int) uwsgi->async_events[i].ASYNC_FD == uwsgi->serverfd) { wsgi_req = find_first_accepting_wsgi_req(uwsgi); if (!wsgi_req) goto cycle; u_green_schedule_to_req(uwsgi, wsgi_req); diff --git a/uwsgiconfig.py b/uwsgiconfig.py index b50383d9..2dd88399 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -28,7 +28,7 @@ STACKLESS=False PLUGINS = [] USWALLOW=False UNBIT=False -DEBUG=True +DEBUG=False EMBED_PLUGINS=True UWSGI_BIN_NAME = 'uwsgi' UWSGI_PLUGIN_DIR = '.'