47 |
47 |
48 int load_sync_config() { |
48 int load_sync_config() { |
49 char *file = util_concat_path(ENV_HOME, ".dav/sync.xml"); |
49 char *file = util_concat_path(ENV_HOME, ".dav/sync.xml"); |
50 xmlDoc *doc = xmlReadFile(file, NULL, 0); |
50 xmlDoc *doc = xmlReadFile(file, NULL, 0); |
51 if(!doc) { |
51 if(!doc) { |
52 fprintf(stderr, "Missing configuration file\n"); |
52 fprintf(stderr, "Missing or broken configuration file\n"); |
53 scfg_print_example(); |
53 scfg_print_example(); |
54 return -1; |
54 return -1; |
55 } |
55 } |
56 |
56 |
57 directories = ucx_map_new(8); |
57 directories = ucx_map_new(8); |