From e48ab5f51b7338d4bbe9f543f4b192557499f050 Mon Sep 17 00:00:00 2001 From: Benoit Gschwind Date: Tue, 10 May 2016 22:47:55 +0200 Subject: [PATCH] main: rename new_config arg of weston_wayland_backend_config_release Rename new_config to config to follow legacy naming scheme. Signed-off-by: Benoit Gschwind Reviewed-by: Quentin Glidic Reviewed-by: Pekka Paalanen --- src/main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index a139f05..4c870eb 100644 --- a/src/main.c +++ b/src/main.c @@ -1086,16 +1086,16 @@ weston_wayland_output_config_init(struct weston_wayland_backend_output_config *o } static void -weston_wayland_backend_config_release(struct weston_wayland_backend_config *new_config) +weston_wayland_backend_config_release(struct weston_wayland_backend_config *config) { int i; - for (i = 0; i < new_config->num_outputs; ++i) { - free(new_config->outputs[i].name); + for (i = 0; i < config->num_outputs; ++i) { + free(config->outputs[i].name); } - free(new_config->cursor_theme); - free(new_config->display_name); - free(new_config->outputs); + free(config->cursor_theme); + free(config->display_name); + free(config->outputs); } /* -- 2.7.4