121 "malformed tag filter: %s\n", |
121 "malformed tag filter: %s\n", |
122 value); |
122 value); |
123 return 1; |
123 return 1; |
124 } else { |
124 } else { |
125 // get scope |
125 // get scope |
126 xmlChar *scope = xmlGetNoNsProp(node, "scope"); |
126 xmlChar *scope = xmlGetNoNsProp(node, BAD_CAST "scope"); |
127 if(scope) { |
127 if(scope) { |
128 if(xstreq(scope, "resource")) |
128 if(xstreq(scope, "resource")) |
129 { |
129 { |
130 tagfilter->scope = |
130 tagfilter->scope = |
131 DAV_SYNC_TAGFILTER_SCOPE_RESOURCE; |
131 DAV_SYNC_TAGFILTER_SCOPE_RESOURCE; |
199 } else { |
199 } else { |
200 return NULL; |
200 return NULL; |
201 } |
201 } |
202 |
202 |
203 xmlAttr *attr = c->properties; |
203 xmlAttr *attr = c->properties; |
204 xmlChar *format = xmlGetNoNsProp(node, "format"); |
204 xmlChar *format = xmlGetNoNsProp(node, BAD_CAST "format"); |
205 if(format) { |
205 if(format) { |
206 conf.local_format = str2tagformat(format); |
206 conf.local_format = str2tagformat((char*)format); |
207 xmlFree(format); |
207 xmlFree(format); |
208 } |
208 } |
209 } else if(xstreq(c->name, "detect-changes")) { |
209 } else if(xstreq(c->name, "detect-changes")) { |
210 if(!value) { |
210 if(!value) { |
211 return NULL; |
211 return NULL; |