[PATCH weston v3 09/17] compositor-wayland: refactor wayland_backend_config_add_new_output
Benoit Gschwind
gschwind at gnu-log.net
Thu May 5 20:45:47 UTC 2016
Rename new_config to config in wayland_backend_config_add_new_output
function.
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 8d42ec5..3d643f1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1027,16 +1027,16 @@ wayland_backend_config_release(struct weston_wayland_backend_config *new_config)
* structure is NOT cleared nor set to default values.
*/
static struct weston_wayland_backend_output_config *
-wayland_backend_config_add_new_output(struct weston_wayland_backend_config *new_config) {
+wayland_backend_config_add_new_output(struct weston_wayland_backend_config *config) {
struct weston_wayland_backend_output_config *outputs;
- outputs = realloc(new_config->outputs,
- (new_config->num_outputs + 1) * sizeof(struct weston_wayland_backend_output_config));
+ outputs = realloc(config->outputs,
+ (config->num_outputs + 1) * sizeof(struct weston_wayland_backend_output_config));
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