Re: [PATCH 05/32] Convert 'int i' to 'size_t i' in tools/ files

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

 



On 07/08/2013 10:21 PM, Daniel P. Berrange wrote:
From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

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@xxxxxxxxxx>
---
  tools/virsh-domain-monitor.c | 17 +++++++++--------
  tools/virsh-domain.c         | 41 +++++++++++++++++++++++------------------
  tools/virsh-host.c           |  8 ++++----
  tools/virsh-interface.c      |  6 +++---
  tools/virsh-network.c        |  6 +++---
  tools/virsh-nodedev.c        |  8 ++++----
  tools/virsh-nwfilter.c       |  6 +++---
  tools/virsh-pool.c           |  7 ++++---
  tools/virsh-secret.c         |  6 +++---
  tools/virsh-snapshot.c       | 12 ++++++------
  tools/virsh-volume.c         |  6 +++---
  tools/virsh.c                | 15 ++++++++-------
  12 files changed, 73 insertions(+), 65 deletions(-)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 5257416..be650c2 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c

In cmdUndefine(), there are two variables of int type needing conversion.
int vol_i
int tok_i

Guannan



--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]