mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-20 11:33:43 +03:00
examples: Resolve sign-compare warnings
For instance: hellolibvirt/hellolibvirt.c: In function 'showDomains': hellolibvirt/hellolibvirt.c💯19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < numNames; i++) { ^ Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -50,7 +50,7 @@ int main(int argc, char **argv)
|
||||
virAdmConnectPtr conn = NULL;
|
||||
virAdmServerPtr srv = NULL; /* which server list the clients from */
|
||||
virAdmClientPtr *clients = NULL; /* where to store the servers */
|
||||
size_t i = 0;
|
||||
ssize_t i = 0;
|
||||
int count = 0;
|
||||
|
||||
if (argc != 2) {
|
||||
|
Reference in New Issue
Block a user