diff options
author | Thomas Haller <thaller@redhat.com> | 2019-01-22 12:51:10 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-02-05 08:27:42 +0100 |
commit | 93c848ca036d96396bbc5ecd9486b682f08b4fef (patch) | |
tree | 636453d7948c90b5d9751eae207fd23ee969d477 /clients/cli/nmcli.c | |
parent | 82472c557cc966b14d3e1186605a7fc3e37dc17d (diff) | |
download | NetworkManager-93c848ca036d96396bbc5ecd9486b682f08b4fef.tar.gz |
clients: don't tread secret agent as NMSecretAgentOld
Most of the times we actually need a NMSecretAgentSimple typed pointer.
This way, need need to cast less.
But even if we would need to cast more, it's better to have pointers
point to the actual type, not merely to avoid shortcomings of C.
Diffstat (limited to 'clients/cli/nmcli.c')
-rw-r--r-- | clients/cli/nmcli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/cli/nmcli.c b/clients/cli/nmcli.c index a554a382a4..6d38a58857 100644 --- a/clients/cli/nmcli.c +++ b/clients/cli/nmcli.c @@ -1017,7 +1017,7 @@ nmc_cleanup (NmCli *nmc) g_string_free (g_steal_pointer (&nmc->return_text), TRUE); if (nmc->secret_agent) { - nm_secret_agent_old_unregister (nmc->secret_agent, NULL, NULL); + nm_secret_agent_old_unregister (NM_SECRET_AGENT_OLD (nmc->secret_agent), NULL, NULL); g_clear_object (&nmc->secret_agent); } |