summaryrefslogtreecommitdiff
path: root/sway/config.c
diff options
context:
space:
mode:
authorIan Fan <[email protected]>2018-12-09 01:15:23 +0000
committerIan Fan <[email protected]>2018-12-09 01:15:38 +0000
commit98c1e19466c0d83c8e1ca86eda5b273eda7eff3c (patch)
treeb47ccc174669786e3a1df9569046886c23003a45 /sway/config.c
parentc8776fac4232f9faab0a78ef3e18dc4366496421 (diff)
list.c: rename free_flat_list to list_free_items_and_destroy
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/config.c b/sway/config.c
index 4621cad9..5b03bc56 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -444,7 +444,7 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
}
}
- free_flat_list(secconfigs);
+ list_free_items_and_destroy(secconfigs);
}
*/
@@ -652,7 +652,7 @@ bool read_config(FILE *file, struct sway_config *config,
if (read + length > config_size) {
wlr_log(WLR_ERROR, "Config file changed during reading");
- free_flat_list(stack);
+ list_free_items_and_destroy(stack);
free(line);
return false;
}
@@ -681,7 +681,7 @@ bool read_config(FILE *file, struct sway_config *config,
}
char *expanded = expand_line(block, line, brace_detected > 0);
if (!expanded) {
- free_flat_list(stack);
+ list_free_items_and_destroy(stack);
free(line);
return false;
}
@@ -746,7 +746,7 @@ bool read_config(FILE *file, struct sway_config *config,
free(line);
free_cmd_results(res);
}
- free_flat_list(stack);
+ list_free_items_and_destroy(stack);
config->current_config_line_number = 0;
config->current_config_line = NULL;