diff options
Diffstat (limited to 'clients/cli/agent.c')
| -rw-r--r-- | clients/cli/agent.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clients/cli/agent.c b/clients/cli/agent.c index 1695ed59..c4ff3f9e 100644 --- a/clients/cli/agent.c +++ b/clients/cli/agent.c @@ -21,8 +21,6 @@ #include "config.h" -#include <glib.h> -#include <glib/gi18n.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> @@ -30,6 +28,7 @@ #include <readline/readline.h> #include <readline/history.h> +#include "nm-default.h" #include "common.h" #include "utils.h" #include "nm-secret-agent-simple.h" @@ -145,7 +144,7 @@ do_agent_secret (NmCli *nmc, int argc, char **argv) nmc->secret_agent = nm_secret_agent_simple_new ("nmcli-agent"); if (nmc->secret_agent) { /* We keep running */ - nmc->should_wait = TRUE; + nmc->should_wait++; nm_secret_agent_simple_enable (NM_SECRET_AGENT_SIMPLE (nmc->secret_agent), NULL); g_signal_connect (nmc->secret_agent, "request-secrets", G_CALLBACK (secrets_requested), nmc); @@ -172,7 +171,7 @@ do_agent_polkit (NmCli *nmc, int argc, char **argv) g_error_free (error); } else { /* We keep running */ - nmc->should_wait = TRUE; + nmc->should_wait++; g_print (_("nmcli successfully registered as a polkit agent.\n")); } |