Convert 'int i' to 'size_t i' in tests/ 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: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange
2013-07-10 17:40:13 +01:00
parent f8b42f3224
commit 7a1e691711
18 changed files with 62 additions and 56 deletions
+2 -2
View File
@@ -57,7 +57,7 @@ static int envsort(const void *a, const void *b) {
}
int main(int argc, char **argv) {
int i, n;
size_t i, n;
char **origenv;
char **newenv;
char *cwd;
@@ -104,7 +104,7 @@ int main(int argc, char **argv) {
closed = fcntl(i, F_GETFD, &f) == -1 &&
errno == EBADF;
if (!closed)
fprintf(log, "FD:%d\n", i);
fprintf(log, "FD:%zu\n", i);
}
fprintf(log, "DAEMON:%s\n", getpgrp() == getsid(0) ? "yes" : "no");