Fossil SCM

Fix a harmless compiler warning.

drh 2015-05-09 12:47 trunk
Commit 31c81ac65b655ebffd883d378946acc256f1b1fa
1 file changed +2 -2
+2 -2
--- src/style.c
+++ src/style.c
@@ -1430,15 +1430,15 @@
14301430
** Search string zCss for zSelector.
14311431
**
14321432
** Return true if found. Return false if not found
14331433
*/
14341434
static int containsSelector(const char *zCss, const char *zSelector){
1435
- char *z;
1435
+ const char *z;
14361436
int n;
14371437
int selectorLen = (int)strlen(zSelector);
14381438
1439
- for( z=zCss; *z; z+=selectorLen ){
1439
+ for(z=zCss; *z; z+=selectorLen){
14401440
z = strstr(z, zSelector);
14411441
if( z==0 ) return 0;
14421442
if( z!=zCss ){
14431443
for( n=-1; z+n!=zCss && fossil_isspace(z[n]); n--);
14441444
if( z+n!=zCss && z[n]!=',' && z[n]!= '}' && z[n]!='/' ) continue;
14451445
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button