Fossil SCM
Fix a harmless compiler warning.
Commit
31c81ac65b655ebffd883d378946acc256f1b1fa
Parent
ca869aabe2a938c…
1 file changed
+2
-2
+2
-2
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -1430,15 +1430,15 @@ | ||
| 1430 | 1430 | ** Search string zCss for zSelector. |
| 1431 | 1431 | ** |
| 1432 | 1432 | ** Return true if found. Return false if not found |
| 1433 | 1433 | */ |
| 1434 | 1434 | static int containsSelector(const char *zCss, const char *zSelector){ |
| 1435 | - char *z; | |
| 1435 | + const char *z; | |
| 1436 | 1436 | int n; |
| 1437 | 1437 | int selectorLen = (int)strlen(zSelector); |
| 1438 | 1438 | |
| 1439 | - for( z=zCss; *z; z+=selectorLen ){ | |
| 1439 | + for(z=zCss; *z; z+=selectorLen){ | |
| 1440 | 1440 | z = strstr(z, zSelector); |
| 1441 | 1441 | if( z==0 ) return 0; |
| 1442 | 1442 | if( z!=zCss ){ |
| 1443 | 1443 | for( n=-1; z+n!=zCss && fossil_isspace(z[n]); n--); |
| 1444 | 1444 | if( z+n!=zCss && z[n]!=',' && z[n]!= '}' && z[n]!='/' ) continue; |
| 1445 | 1445 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -1430,15 +1430,15 @@ | |
| 1430 | ** Search string zCss for zSelector. |
| 1431 | ** |
| 1432 | ** Return true if found. Return false if not found |
| 1433 | */ |
| 1434 | static int containsSelector(const char *zCss, const char *zSelector){ |
| 1435 | char *z; |
| 1436 | int n; |
| 1437 | int selectorLen = (int)strlen(zSelector); |
| 1438 | |
| 1439 | for( z=zCss; *z; z+=selectorLen ){ |
| 1440 | z = strstr(z, zSelector); |
| 1441 | if( z==0 ) return 0; |
| 1442 | if( z!=zCss ){ |
| 1443 | for( n=-1; z+n!=zCss && fossil_isspace(z[n]); n--); |
| 1444 | if( z+n!=zCss && z[n]!=',' && z[n]!= '}' && z[n]!='/' ) continue; |
| 1445 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -1430,15 +1430,15 @@ | |
| 1430 | ** Search string zCss for zSelector. |
| 1431 | ** |
| 1432 | ** Return true if found. Return false if not found |
| 1433 | */ |
| 1434 | static int containsSelector(const char *zCss, const char *zSelector){ |
| 1435 | const char *z; |
| 1436 | int n; |
| 1437 | int selectorLen = (int)strlen(zSelector); |
| 1438 | |
| 1439 | for(z=zCss; *z; z+=selectorLen){ |
| 1440 | z = strstr(z, zSelector); |
| 1441 | if( z==0 ) return 0; |
| 1442 | if( z!=zCss ){ |
| 1443 | for( n=-1; z+n!=zCss && fossil_isspace(z[n]); n--); |
| 1444 | if( z+n!=zCss && z[n]!=',' && z[n]!= '}' && z[n]!='/' ) continue; |
| 1445 |