summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorJohn Ferlan <jferlan@redhat.com>2017-07-26 10:18:39 -0400
committerJohn Ferlan <jferlan@redhat.com>2017-08-16 14:17:57 -0400
commit8473859a47972c77e4caa46cab635fcd00bf24d4 (patch)
tree7aa593cd835d68bd75a872bac2b6c1db66ccf376 /src/network
parent178ac3d133d97c6d91d9a7c067b5a64c3dfe962e (diff)
downloadlibvirt-8473859a47972c77e4caa46cab635fcd00bf24d4.tar.gz
network: Use @maxnames instead of @nnames
To be consistent with the API definition, use the @maxnames instead of @nnames when describing/comparing against the maximum names to be provided for the *ConnectList[Defined]Networks APIs. Signed-off-by: John Ferlan <jferlan@redhat.com>
Diffstat (limited to 'src/network')
-rw-r--r--src/network/bridge_driver.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index b59de78ea5..74ce92e434 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -2946,7 +2946,7 @@ networkConnectNumOfNetworks(virConnectPtr conn)
static int
networkConnectListNetworks(virConnectPtr conn,
char **const names,
- int nnames)
+ int maxnames)
{
virNetworkDriverStatePtr driver = networkGetDriver();
int got = 0;
@@ -2955,7 +2955,7 @@ networkConnectListNetworks(virConnectPtr conn,
return -1;
got = virNetworkObjListGetNames(driver->networks,
- true, names, nnames,
+ true, names, maxnames,
virConnectListNetworksCheckACL,
conn);
@@ -2984,7 +2984,7 @@ networkConnectNumOfDefinedNetworks(virConnectPtr conn)
static int
networkConnectListDefinedNetworks(virConnectPtr conn,
char **const names,
- int nnames)
+ int maxnames)
{
virNetworkDriverStatePtr driver = networkGetDriver();
int got = 0;
@@ -2993,7 +2993,7 @@ networkConnectListDefinedNetworks(virConnectPtr conn,
return -1;
got = virNetworkObjListGetNames(driver->networks,
- false, names, nnames,
+ false, names, maxnames,
virConnectListDefinedNetworksCheckACL,
conn);
return got;