summaryrefslogtreecommitdiff
path: root/src/locale
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2014-08-06 07:57:43 +0200
committerStef Walter <stef@thewalter.net>2014-08-15 14:07:07 +0200
commit36e34057a202d389263e98030fbd775b28b28af6 (patch)
tree2d620aa248a65e6590fc4921ab56be9ad025f57d /src/locale
parent926446f4aab62d5fa02840d39d661de61632292c (diff)
downloadsystemd-36e34057a202d389263e98030fbd775b28b28af6.tar.gz
sd-bus: Remove bus arg from bus_verify_polkit_async_registry_free()
It's unneccessary, not used, and complicates callers of the function.
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/localed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/locale/localed.c b/src/locale/localed.c
index 3cfc2ea4d3..4d7d02b9a3 100644
--- a/src/locale/localed.c
+++ b/src/locale/localed.c
@@ -131,12 +131,12 @@ static void context_free_locale(Context *c) {
free_and_replace(&c->locale[p], NULL);
}
-static void context_free(Context *c, sd_bus *bus) {
+static void context_free(Context *c) {
context_free_locale(c);
context_free_x11(c);
context_free_vconsole(c);
- bus_verify_polkit_async_registry_free(bus, c->polkit_registry);
+ bus_verify_polkit_async_registry_free(c->polkit_registry);
};
static void locale_simplify(Context *c) {
@@ -1160,7 +1160,7 @@ int main(int argc, char *argv[]) {
}
finish:
- context_free(&context, bus);
+ context_free(&context);
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}