From 3e3cf383ae5a0c39e39020c69370c59c27416028 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Aug 2016 18:19:50 +0200 Subject: Fix bugs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/servers/kernel.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/servers') diff --git a/src/servers/kernel.c b/src/servers/kernel.c index 19af912..4ccbe9c 100644 --- a/src/servers/kernel.c +++ b/src/servers/kernel.c @@ -52,13 +52,13 @@ static char* get_pathname(const char* restrict suffix) size_t n; int saved_errno; - if (site.site) + if (sitename) { - name = memdup(site.site, strlen(site.site) + 1); + name = memdup(sitename, strlen(sitename) + 1); if (name == NULL) goto fail; } - else if ((name = libgamma_method_default_site(site.method))) + else if ((name = libgamma_method_default_site(method))) { name = memdup(name, strlen(name) + 1); if (name == NULL) @@ -66,7 +66,7 @@ static char* get_pathname(const char* restrict suffix) } if (name != NULL) - switch (site.method) + switch (method) { case LIBGAMMA_METHOD_X_RANDR: case LIBGAMMA_METHOD_X_VIDMODE: @@ -89,7 +89,7 @@ static char* get_pathname(const char* restrict suffix) if (!(rc = malloc(n))) goto fail; sprintf(rc, "%s/.coopgammad/~%s/%i%s%s%s", - rundir, username, site.method, name ? "." : "", name ? name : "", suffix); + rundir, username, method, name ? "." : "", name ? name : "", suffix); free(name); return rc; -- cgit v1.2.3-70-g09d2