Deal with the fact that modern compilers assume different scoping rules
Patch from Pascal Stumpf <Pascal.Stumpf@cubes.de>: So here are all the patches that deal with the fact that modern compilers assume different scoping rules for variables declared in for loops. On Linux, -fpermissive has been added as a compiler flag to compensate for this old C code, but I think it is the wrong approach. Sorry, couldn't help sneaking in a || defined(CSRG_BASED) and some casts needed for other reasons ...
This commit is contained in:
@@ -1079,7 +1079,8 @@ _tt_isopen_1(_Tt_isopen_args *args, SVCXPRT * /* transp */)
|
||||
|
||||
int l = db_path.len();
|
||||
int tl = strlen("TT_DB");
|
||||
for (int j = 0; j<l; j++) {
|
||||
int j;
|
||||
for (j = 0; j<l; j++) {
|
||||
if (0==strncmp((char *)db_path+j,"TT_DB",tl)) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user