summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@openbsd.org>2020-11-29 12:34:47 +0100
committerGitHub <noreply@github.com>2020-11-29 12:34:47 +0100
commit7f6bf32c92890b9ebeac5e1fec092896729c9b9f (patch)
tree0292f09eed0050f61591fb744524440078ee95a9
parent1acc017878c97095e891d155b22dccec3494556e (diff)
parent969bdd7e2b98dc04ee43819464796cc9fe5ecb6f (diff)
downloadConsoleKit2-7f6bf32c92890b9ebeac5e1fec092896729c9b9f.tar.gz
Merge pull request #122 from rnagy/who_arg
get_named_pipe_path does not require the 'who' argument anymore
-rw-r--r--src/ck-inhibit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ck-inhibit.c b/src/ck-inhibit.c
index 9cea71f..31e37b4 100644
--- a/src/ck-inhibit.c
+++ b/src/ck-inhibit.c
@@ -445,7 +445,7 @@ cb_named_pipe_close (GIOChannel *source,
/* Builds the path to the named pipe. Free the returned string when done. */
static gchar*
-get_named_pipe_path (const char* who)
+get_named_pipe_path (void)
{
char *path;
gint tmp_fd;
@@ -594,7 +594,7 @@ ck_inhibit_create_lock (CkInhibit *inhibit,
priv->why = g_strdup (why);
priv->uid = uid;
priv->pid = pid;
- priv->named_pipe_path = get_named_pipe_path (who);
+ priv->named_pipe_path = get_named_pipe_path ();
if (!parse_inhibitors_string(inhibit, what)) {
g_warning ("Failed to set any inhibitors.");
return CK_INHIBIT_ERROR_INVALID_INPUT;