mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user