Skip to content

Commit

Permalink
main: rename load_wayland_backend_config arg "config" to wc
Browse files Browse the repository at this point in the history
Rename the load_wayland_backend_config arg "config" to use this name for
another variable in the following patch. It also follow the 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>
  • Loading branch information
gschwind authored and ppaalanen committed May 11, 2016
1 parent 3ff10da commit 6c1cd2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ wayland_backend_config_add_new_output(struct weston_wayland_backend_config *new_

static int
load_wayland_backend_config(struct weston_compositor *compositor, int *argc,
char *argv[], struct weston_config *config,
char *argv[], struct weston_config *wc,
struct weston_wayland_backend_config *out_config)
{
struct weston_wayland_backend_config new_config = {{ 0, }};
Expand Down Expand Up @@ -1157,7 +1157,7 @@ load_wayland_backend_config(struct weston_compositor *compositor, int *argc,
new_config.base.struct_size = sizeof(struct weston_wayland_backend_config);
new_config.base.struct_version = WESTON_WAYLAND_BACKEND_CONFIG_VERSION;

section = weston_config_get_section(config, "shell", NULL, NULL);
section = weston_config_get_section(wc, "shell", NULL, NULL);
weston_config_section_get_string(section, "cursor-theme",
&new_config.cursor_theme, NULL);
weston_config_section_get_int(section, "cursor-size",
Expand Down Expand Up @@ -1185,7 +1185,7 @@ load_wayland_backend_config(struct weston_compositor *compositor, int *argc,
}

section = NULL;
while (weston_config_next_section(config, &section, &section_name)) {
while (weston_config_next_section(wc, &section, &section_name)) {
if (!section_name || strcmp(section_name, "output") != 0)
continue;
weston_config_section_get_string(section, "name", &name, NULL);
Expand Down

0 comments on commit 6c1cd2f

Please sign in to comment.