ui/common/properties.c

changeset 997
287b20e2a564
parent 994
c9395b30e5c8
equal deleted inserted replaced
996:61b811c4705f 997:287b20e2a564
232 } 232 }
233 } 233 }
234 // try creating the parent 234 // try creating the parent
235 int err = ui_mkdir(parent); 235 int err = ui_mkdir(parent);
236 if(err) { 236 if(err) {
237 fprintf(stderr, "Error: Cannot create directory %s: %s\n", strerror(errno)); 237 fprintf(stderr, "Error: Cannot create directory %s: %s\n", parent, strerror(errno));
238 free(parent); 238 free(parent);
239 free(dir); 239 free(dir);
240 return; 240 return;
241 } 241 }
242 free(parent); 242 free(parent);
288 } 288 }
289 289
290 int ret = 0; 290 int ret = 0;
291 CxMapIterator i = cxMapIterator(application_properties); 291 CxMapIterator i = cxMapIterator(application_properties);
292 cx_foreach(CxMapEntry *, entry, i) { 292 cx_foreach(CxMapEntry *, entry, i) {
293 fprintf(file, "%.*s = %s\n", (int)entry->key->len, entry->key->data, entry->value); 293 fprintf(file, "%.*s = %s\n", (int)entry->key->len, (char*)entry->key->data, (char*)entry->value);
294 } 294 }
295 295
296 cxMapRehash(application_properties); 296 cxMapRehash(application_properties);
297 297
298 fclose(file); 298 fclose(file);

mercurial