about summary refs log tree commit diff
path: root/clients/cli/devices.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2018-02-07 02:40:03 +0100
committerMichael Biebl <biebl@debian.org>2018-02-07 02:40:03 +0100
commit77dfac263f463c1cdb8afb9b8c79a4e83bf08cd8 (patch)
treee5288440b22e159a601450c2e5d40b013bdb4aa0 /clients/cli/devices.c
parent3d9525cb641ac53c6d36bf5312710c22ae4bd926 (diff)
parent50f6b47074e01dffb8dc536c0a20961dcf28ae9b (diff)
Update upstream source from tag 'upstream/1.10.4'
Update to upstream version '1.10.4'
with Debian dir d2c0f877c591b3125f4e0cfcc711c04669d8d62b
Diffstat (limited to 'clients/cli/devices.c')
-rw-r--r--clients/cli/devices.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/cli/devices.c b/clients/cli/devices.c
index 467ce427..da969fbe 100644
--- a/clients/cli/devices.c
+++ b/clients/cli/devices.c
@@ -1116,8 +1116,8 @@ show_device_info (NMDevice *device, NmCli *nmc)
 		                                   (const NMMetaAbstractInfo *const*) nmc_fields_dev_show_general,
 		                                   FALSE, NULL, NULL);
 
-		row = g_new0 (NmcOutputField, _NM_META_SETTING_TYPE_NUM + 1);
-		for (i = 0; i < _NM_META_SETTING_TYPE_NUM; i++)
+		row = g_new0 (NmcOutputField, G_N_ELEMENTS (nmc_fields_dev_show_general));
+		for (i = 0; i < G_N_ELEMENTS (nmc_fields_dev_show_general); i++)
 			row[i].info = (const NMMetaAbstractInfo *) &nmc_fields_dev_show_general[i];
 
 		print_required_fields (&nmc->nmc_config, NMC_OF_FLAG_MAIN_HEADER_ONLY,