|
|
@ -132,13 +132,15 @@ list_from_glob(const char *pattern) { |
|
|
|
return files; |
|
|
|
return files; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void |
|
|
|
bool |
|
|
|
list_destroy(f2b_file_t *list) { |
|
|
|
stop(cfg_t *cfg) { |
|
|
|
f2b_file_t *next = NULL; |
|
|
|
f2b_file_t *next = NULL; |
|
|
|
|
|
|
|
|
|
|
|
for (; list != NULL; list = next) { |
|
|
|
for (; cfg->files != NULL; cfg->files = next) { |
|
|
|
next = list->next; |
|
|
|
next = cfg->files->next; |
|
|
|
file_close(list); |
|
|
|
file_close(cfg->files); |
|
|
|
free(list); |
|
|
|
free(cfg->files); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|