other 'c strict' fixes

This commit is contained in:
roberto@voldemort
2010-09-06 09:03:42 +02:00
parent 527ad44463
commit f35ad319cf
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ char *ini_lstrip(char *line) {
off_t i ;
char *ptr = line;
for(i=0;i<strlen(line);i++) {
for(i=0;i< (int) strlen(line);i++) {
if (line[i] == ' ' || line[i] == '\t') {
ptr++;
continue;
@@ -46,7 +46,7 @@ char *ini_get_key(char *key) {
off_t i;
char *ptr = key ;
for(i=0;i<strlen(key);i++) {
for(i=0;i< (int) strlen(key);i++) {
ptr++ ;
if (key[i] == '=') {
key[i] = 0;
+6 -6
View File
@@ -10,7 +10,7 @@ void ldap2uwsgi(char *ldapname, char *uwsginame) {
int i;
for(i=0;i<strlen(ldapname);i++) {
for(i=0;i< (int) strlen(ldapname);i++) {
if (isupper( (int)ldapname[i])) {
*ptr++= '-';
*ptr++= tolower( (int) ldapname[i]);
@@ -28,7 +28,7 @@ int calc_ldap_name(char *name) {
int i;
int counter = 0;
for(i=0;i<strlen(name);i++) {
for(i=0;i< (int)strlen(name);i++) {
if (isupper( (int) name[i])) {
counter++;
}
@@ -70,7 +70,7 @@ void uwsgi_ldap_schema_dump_ldif(struct option *lo) {
else {
uwsgi_log("olcAttributeTypes: ( 1.3.6.1.4.1.35156.17.4.%d NAME 'uWSGI", aopt->val) ;
}
for(i=0;i<strlen(aopt->name);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;i<strlen(aopt->name);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;i<strlen(aopt->name);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;i<strlen(aopt->name);i++) {
for(i=0;i< (int)strlen(aopt->name);i++) {
if (aopt->name[i] == '-') {
i++;
uwsgi_log("%c", toupper( (int) aopt->name[i]));
+1 -1
View File
@@ -414,7 +414,7 @@ void u_green_loop(struct uwsgi_server *uwsgi) {
for(i=0; i<uwsgi->async_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);
+1 -1
View File
@@ -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 = '.'