mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-10-18 03:33:51 +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:
@@ -9,7 +9,7 @@ int main(int argc, char **argv)
|
||||
virAdmServerPtr srv = NULL; /* which server to work with */
|
||||
virTypedParameterPtr params = NULL;
|
||||
int nparams = 0;
|
||||
size_t i;
|
||||
ssize_t i;
|
||||
|
||||
if (argc != 2) {
|
||||
fprintf(stderr, "One argument specifying the server which to work "
|
||||
|
Reference in New Issue
Block a user