[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 19/32] Convert 'int i' to 'size_t i' in src/openvz/ files



From: "Daniel P. Berrange" <berrange redhat com>

Convert the type of loop iterators named 'i', 'j', k',
'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or
'unsigned int', also santizing 'ii', 'jj', 'kk' to use
the normal 'i', 'j', 'k' naming

Signed-off-by: Daniel P. Berrange <berrange redhat com>
---
 src/openvz/openvz_driver.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c
index 7af0349..7446f73 100644
--- a/src/openvz/openvz_driver.c
+++ b/src/openvz/openvz_driver.c
@@ -909,7 +909,7 @@ static int
 openvzDomainSetNetworkConfig(virConnectPtr conn,
                              virDomainDefPtr def)
 {
-    unsigned int i;
+    size_t i;
     virBuffer buf = VIR_BUFFER_INITIALIZER;
     char *param;
     int first = 1;
@@ -1793,7 +1793,8 @@ openvzDomainGetMemoryParameters(virDomainPtr domain,
                                 int *nparams,
                                 unsigned int flags)
 {
-    int i, result = -1;
+    size_t i;
+    int result = -1;
     const char *name;
     long kb_per_pages;
     unsigned long long barrier, limit, val;
@@ -1863,7 +1864,8 @@ openvzDomainSetMemoryParameters(virDomainPtr domain,
                                 int nparams,
                                 unsigned int flags)
 {
-    int i, result = -1;
+    size_t i;
+    int result = -1;
     long kb_per_pages;
 
     kb_per_pages = openvzKBPerPages();
@@ -1963,7 +1965,7 @@ openvzDomainInterfaceStats(virDomainPtr dom,
 {
     struct openvz_driver *driver = dom->conn->privateData;
     virDomainObjPtr vm;
-    int i;
+    size_t i;
     int ret = -1;
 
     openvzDriverLock(driver);
-- 
1.8.1.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]