aboutsummaryrefslogtreecommitdiffstats
path: root/src/servers/kernel.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-05 18:19:50 +0200
committerMattias Andrée <maandree@kth.se>2016-08-05 18:19:50 +0200
commit3e3cf383ae5a0c39e39020c69370c59c27416028 (patch)
tree6578f0497f797483c70a8f11e2c189b4e0bd381b /src/servers/kernel.c
parentFix signal handlers: restore errno (diff)
downloadcoopgammad-3e3cf383ae5a0c39e39020c69370c59c27416028.tar.gz
coopgammad-3e3cf383ae5a0c39e39020c69370c59c27416028.tar.bz2
coopgammad-3e3cf383ae5a0c39e39020c69370c59c27416028.tar.xz
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/servers/kernel.c10
1 files changed, 5 insertions, 5 deletions
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;