[libvirt] [PATCH 5/8] Use size_t for virNetworkIpDef structure

Dmitry Guryanov dguryanov at parallels.com
Tue Dec 11 10:59:46 UTC 2012


Use size_t as array length, so that VIR_EXPAND_N can be
used for expanding arrays.

Signed-off-by: Dmitry Guryanov <dguryanov at parallels.com>
---
 src/conf/network_conf.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conf/network_conf.h b/src/conf/network_conf.h
index 949b3d2..87d7746 100644
--- a/src/conf/network_conf.h
+++ b/src/conf/network_conf.h
@@ -129,10 +129,10 @@ struct _virNetworkIpDef {
     unsigned int prefix;        /* ipv6 - only prefix allowed */
     virSocketAddr netmask;      /* ipv4 - either netmask or prefix specified */
 
-    unsigned int nranges;        /* Zero or more dhcp ranges */
+    size_t nranges;             /* Zero or more dhcp ranges */
     virNetworkDHCPRangeDefPtr ranges;
 
-    unsigned int nhosts;         /* Zero or more dhcp hosts */
+    size_t nhosts;              /* Zero or more dhcp hosts */
     virNetworkDHCPHostDefPtr hosts;
 
     char *tftproot;
-- 
1.7.7.6




More information about the libvir-list mailing list