[virt-tools-list] [PATCH 08/11] remove more declarations of unused variables
Jim Meyering
jim at meyering.net
Fri Jan 29 14:58:49 UTC 2010
From: Jim Meyering <meyering at redhat.com>
---
test/test-get_devices.c | 4 ++--
test/test-get_os.c | 4 ++--
test/test-set_hypervisor.c | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/test/test-get_devices.c b/test/test-get_devices.c
index 7e57ed3..807004f 100644
--- a/test/test-get_devices.c
+++ b/test/test-get_devices.c
@@ -6,7 +6,7 @@
int main(int argc, char** argv)
{
- int i, ret, num, err, len;
+ int ret, err, len;
osi_lib_t lib;
osi_hypervisor_t hv;
osi_device_list_t all_audio_devices, subset_audio_devices;
@@ -197,4 +197,4 @@ int main(int argc, char** argv)
printf("test-get_devices succeeded.\n");
return 0;
-}
\ No newline at end of file
+}
diff --git a/test/test-get_os.c b/test/test-get_os.c
index c7a5b17..fc1a011 100644
--- a/test/test-get_os.c
+++ b/test/test-get_os.c
@@ -6,7 +6,7 @@
int main(int argc, char** argv)
{
- int ret, len, err;
+ int ret, err;
osi_lib_t lib;
osi_os_t os;
osi_os_list_t os_list;
@@ -155,4 +155,4 @@ int main(int argc, char** argv)
printf("test-get_os succeeded.\n");
return 0;
-}
\ No newline at end of file
+}
diff --git a/test/test-set_hypervisor.c b/test/test-set_hypervisor.c
index 3453a39..a831413 100644
--- a/test/test-set_hypervisor.c
+++ b/test/test-set_hypervisor.c
@@ -11,7 +11,7 @@ int main(int argc, char** argv)
{
int ret, num, err;
char** hypervisor_rdfs;
- char * hv_one_rdf, * hv_two_rdf, * hv_default_rdf;
+ char * hv_one_rdf, * hv_two_rdf;
osi_lib_t lib_hv_one, lib_hv_two, lib_hv_default;
osi_hypervisor_t hv_one, hv_two, hv_test;
char* data_dir;
@@ -36,7 +36,7 @@ int main(int argc, char** argv)
assert ( err == 0 );
assert ( num == 2 ); /* Only two defined in the dummy data */
assert ( hypervisor_rdfs != NULL );
- ret = (strcmp(KVM, hypervisor_rdfs[0]) == 0) ||
+ ret = (strcmp(KVM, hypervisor_rdfs[0]) == 0) ||
(strcmp(XEN, hypervisor_rdfs[0] == 0));
assert ( ret == 1 );
if (strcmp(KVM, hypervisor_rdfs[0]) == 0)
@@ -153,4 +153,4 @@ int main(int argc, char** argv)
free(hypervisor_rdfs);
printf("test-hypervisor succeeded.\n");
return 0;
-}
\ No newline at end of file
+}
--
1.7.0.rc0.187.g226c
More information about the virt-tools-list
mailing list