[PATCH weston v4 13/14] compositor-wayland: rename new_config arg of weston_wayland_backend_config_add_new_output

Benoit Gschwind gschwind at gnu-log.net
Tue May 10 20:47:56 UTC 2016


Rename new_config to config to follow legacy naming scheme.

Signed-off-by: Benoit Gschwind <gschwind at gnu-log.net>
---
 src/main.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main.c b/src/main.c
index 285a10d..d0a962f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1104,18 +1104,18 @@ weston_wayland_backend_config_release(struct weston_wayland_backend_config *conf
  * structure is NOT cleared nor set to default values.
  */
 static struct weston_wayland_backend_output_config *
-weston_wayland_backend_config_add_new_output(struct weston_wayland_backend_config *new_config)
+weston_wayland_backend_config_add_new_output(struct weston_wayland_backend_config *config)
 {
 	struct weston_wayland_backend_output_config *outputs;
 	const size_t element_size = sizeof(struct weston_wayland_backend_output_config);
 
-	outputs = realloc(new_config->outputs,
-			  (new_config->num_outputs + 1) * element_size);
+	outputs = realloc(config->outputs,
+			  (config->num_outputs + 1) * element_size);
 	if (!outputs)
 		return NULL;
-	new_config->num_outputs += 1;
-	new_config->outputs = outputs;
-	return &(new_config->outputs[new_config->num_outputs - 1]);
+	config->num_outputs += 1;
+	config->outputs = outputs;
+	return &(config->outputs[config->num_outputs - 1]);
 }
 
 static int
-- 
2.7.3



More information about the wayland-devel mailing list