提交 85bd5738 编写于 作者: D Daniel P. Berrange

Convert 'int i' to 'size_t i' in src/vbox/ files

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: NDaniel P. Berrange <berrange@redhat.com>
上级 bb029fe7
...@@ -184,7 +184,7 @@ cleanup: ...@@ -184,7 +184,7 @@ cleanup:
int int
VBoxCGlueInit(unsigned int *version) VBoxCGlueInit(unsigned int *version)
{ {
int i; size_t i;
static const char *knownDirs[] = { static const char *knownDirs[] = {
"/usr/lib/virtualbox", "/usr/lib/virtualbox",
"/usr/lib/virtualbox-ose", "/usr/lib/virtualbox-ose",
...@@ -334,7 +334,7 @@ vboxArrayGetWithUintArg(vboxArray *array, void *self, void *getter, PRUint32 arg ...@@ -334,7 +334,7 @@ vboxArrayGetWithUintArg(vboxArray *array, void *self, void *getter, PRUint32 arg
void void
vboxArrayRelease(vboxArray *array) vboxArrayRelease(vboxArray *array)
{ {
int i; size_t i;
nsISupports *supports; nsISupports *supports;
if (array->items == NULL) { if (array->items == NULL) {
...@@ -361,7 +361,7 @@ vboxArrayRelease(vboxArray *array) ...@@ -361,7 +361,7 @@ vboxArrayRelease(vboxArray *array)
void void
vboxArrayUnalloc(vboxArray *array) vboxArrayUnalloc(vboxArray *array)
{ {
int i; size_t i;
void *item; void *item;
if (array->items == NULL) { if (array->items == NULL) {
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册