diff options
author | Thomas Haller <thaller@redhat.com> | 2020-04-02 19:10:15 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-04-04 19:28:41 +0200 |
commit | 30b8bb476a004ecb95a1cf867fed74b21f3b9c1d (patch) | |
tree | 9b68a0f8dc8818f55401fa3702db357f33056145 /clients/cli/connections.c | |
parent | dbf697c75967406ff05e15e93eb96e7b47df2a1e (diff) | |
download | NetworkManager-30b8bb476a004ecb95a1cf867fed74b21f3b9c1d.tar.gz |
cli: avoid using nm_cli global variable in print_data()
Diffstat (limited to 'clients/cli/connections.c')
-rw-r--r-- | clients/cli/connections.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c index e9e21be827..7fe22adf63 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -1388,9 +1388,13 @@ nmc_connection_profile_details (NMConnection *connection, NmCli *nmc) for (i = 0; i < _NM_META_SETTING_TYPE_NUM; i++) row[i].info = (const NMMetaAbstractInfo *) &nm_meta_setting_infos_editor[i]; - print_required_fields (&nmc->nmc_config, NMC_OF_FLAG_MAIN_HEADER_ONLY, - out_indices, header_name, - 0, row); + print_required_fields (&nmc->nmc_config, + &nmc->pager_data, + NMC_OF_FLAG_MAIN_HEADER_ONLY, + out_indices, + header_name, + 0, + row); } /* Loop through the required settings and print them. */ @@ -1473,9 +1477,13 @@ nmc_active_connection_details (NMActiveConnection *acon, NmCli *nmc) for (i = 0; nmc_fields_con_active_details_groups[i]; i++) row[i].info = (const NMMetaAbstractInfo *) nmc_fields_con_active_details_groups[i]; - print_required_fields (&nmc->nmc_config, NMC_OF_FLAG_MAIN_HEADER_ONLY, - out_indices, header_name, - 0, row); + print_required_fields (&nmc->nmc_config, + &nmc->pager_data, + NMC_OF_FLAG_MAIN_HEADER_ONLY, + out_indices, + header_name, + 0, + row); } /* Loop through the groups and print them. */ |