main: rename new_config arg of weston_wayland_backend_config_add_new_output

Rename new_config to config to follow legacy naming scheme.

Signed-off-by: Benoit Gschwind <gschwind@gnu-log.net>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Benoit Gschwind 9 years ago committed by Pekka Paalanen
parent e48ab5f51b
commit 44e302b77d
  1. 12
      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. * structure is NOT cleared nor set to default values.
*/ */
static struct weston_wayland_backend_output_config * 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; struct weston_wayland_backend_output_config *outputs;
const size_t element_size = sizeof(struct weston_wayland_backend_output_config); const size_t element_size = sizeof(struct weston_wayland_backend_output_config);
outputs = realloc(new_config->outputs, outputs = realloc(config->outputs,
(new_config->num_outputs + 1) * element_size); (config->num_outputs + 1) * element_size);
if (!outputs) if (!outputs)
return NULL; return NULL;
new_config->num_outputs += 1; config->num_outputs += 1;
new_config->outputs = outputs; config->outputs = outputs;
return &(new_config->outputs[new_config->num_outputs - 1]); return &(config->outputs[config->num_outputs - 1]);
} }
static int static int

Loading…
Cancel
Save