comparison: application/config.c
application/config.c
- changeset 114
- 3da24640513a
- parent 113
- dde28a806552
equal
deleted
inserted
replaced
| 168 struct stat s; |
168 struct stat s; |
| 169 if(stat(file, &s)) { |
169 if(stat(file, &s)) { |
| 170 switch(errno) { |
170 switch(errno) { |
| 171 case ENOENT: { |
171 case ENOENT: { |
| 172 davconfig = dav_config_new(NULL); |
172 davconfig = dav_config_new(NULL); |
| 173 return NULL; |
173 return davconfig; |
| 174 } |
174 } |
| 175 default: { |
175 default: { |
| 176 perror("Cannot load config.xml"); |
176 perror("Cannot load config.xml"); |
| 177 } |
177 } |
| 178 } |
178 } |