From 9b942039cac92380992e6800ab7271354433ec5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 3 Dec 2020 11:57:25 +0000 Subject: Avoid signed/unsigned warnings in loop over SSH keys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit libvirt-override.c: In function ‘libvirt_virDomainAuthorizedSSHKeysGet’: libvirt-override.c:10455:19: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 10455 | for (i = 0; i < nkeys; i++) | ^ Signed-off-by: Daniel P. Berrangé --- libvirt-override.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvirt-override.c') diff --git a/libvirt-override.c b/libvirt-override.c index b95cdd4..d9eee28 100644 --- a/libvirt-override.c +++ b/libvirt-override.c @@ -10433,7 +10433,7 @@ libvirt_virDomainAuthorizedSSHKeysGet(PyObject *self ATTRIBUTE_UNUSED, const char *user = NULL; char **keys = NULL; int nkeys; - size_t i; + int i; unsigned int flags; PyObject *ret = NULL; @@ -10477,7 +10477,7 @@ libvirt_virDomainAuthorizedSSHKeysSet(PyObject *self ATTRIBUTE_UNUSED, PyObject *pyobj_keys = NULL; char **keys = NULL; int nkeys = 0; - size_t i; + int i; unsigned int flags; int c_retval; PyObject *py_retval = NULL; -- cgit v1.2.1