summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-04-16 21:37:12 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commita1fa0c718c6120fef15cc7ff872b7e721f5cfbb8 (patch)
tree9b670b4d07a96db2879536af46efbe072b08015d /src/shared
parent0981d331a6200bcd61f927647541bbc468631707 (diff)
polkit: normalize exit values of polkit_agent_open_if_enabled()
It's strange eating up the errors here, hence don't. Let's leave this to the caller.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/spawn-polkit-agent.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/spawn-polkit-agent.h b/src/shared/spawn-polkit-agent.h
index ea72c1281..c4316ea47 100644
--- a/src/shared/spawn-polkit-agent.h
+++ b/src/shared/spawn-polkit-agent.h
@@ -12,17 +12,17 @@
int polkit_agent_open(void);
void polkit_agent_close(void);
-static inline void polkit_agent_open_if_enabled(
+static inline int polkit_agent_open_if_enabled(
BusTransport transport,
bool ask_password) {
/* Open the polkit agent as a child process if necessary */
if (transport != BUS_TRANSPORT_LOCAL)
- return;
+ return 0;
if (!ask_password)
- return;
+ return 0;
- polkit_agent_open();
+ return polkit_agent_open();
}