systemctl: define main through macro and call ask_password_agent_close() from the macro

This doesn't save us anything, but I like consistency.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2018-11-21 09:14:00 +01:00
parent 0c760322a4
commit d1405af399
2 changed files with 8 additions and 8 deletions
+2
View File
@@ -4,6 +4,7 @@
#include <stdlib.h>
#include "pager.h"
#include "spawn-ask-password-agent.h"
#include "spawn-polkit-agent.h"
#include "static-destruct.h"
@@ -12,6 +13,7 @@
int r; \
r = impl(argc, argv); \
static_destruct(); \
ask_password_agent_close(); \
polkit_agent_close(); \
pager_close(); \
return ret; \