From 494f296a3baab08522617b24b1f126d8f9a17502 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 20 Jan 2016 16:26:51 +0100 Subject: Imported Upstream version 1.1.90 --- clients/cli/agent.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'clients/cli/agent.c') 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 -#include #include #include #include @@ -30,6 +28,7 @@ #include #include +#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")); } -- cgit 1.3.0-6-gf8a5