]> xenbits.xensource.com Git - libvirt.git/commitdiff
Clean up global name space in examples and tests.
authorJim Meyering <meyering@redhat.com>
Mon, 14 Jan 2008 14:04:33 +0000 (14:04 +0000)
committerJim Meyering <meyering@redhat.com>
Mon, 14 Jan 2008 14:04:33 +0000 (14:04 +0000)
* docs/examples/suspend.c: Declare global "conn" to be static.
* tests/qemuxml2argvtest.c: Declare global "driver" to be static.
* tests/qemuxml2xmltest.c: Likewise.

Author: Jim Meyering <meyering@redhat.com>

ChangeLog
docs/examples/suspend.c
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c

index 980332e29e768bba77cef49720e51ed94f72870e..de81d3a7acf28a099097936e8926e22acd7651f1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-14  Jim Meyering  <meyering@redhat.com>
+
+       Clean up global name space in examples and tests.
+       * docs/examples/suspend.c: Declare global "conn" to be static.
+       * tests/qemuxml2argvtest.c: Declare global "driver" to be static.
+       * tests/qemuxml2xmltest.c: Likewise.
+
 Sun Jan 13 22:59:53 EST 2008 Daniel P. Berrange <berrange@redhat.com>
 
        * src/remote_internal.c: Refactor code to make error patches
index 80e4da7b3a00fac7423676b1d63d4bdbd912cb77..9ca6299e48f2efbd58c22d570ae31737b374a943 100644 (file)
@@ -15,7 +15,7 @@
 #include <stdio.h>
 #include <libvirt/libvirt.h>
 
-virConnectPtr conn = NULL; /* the hypervisor connection */
+static virConnectPtr conn = NULL; /* the hypervisor connection */
 
 /**
  * checkDomainState:
index d4e39b259bb7dde5bc5f3284d9614adc8e4ffcb3..22e2e8186132b2d407a2576b2488a329f80c4624 100644 (file)
@@ -16,7 +16,7 @@
 
 static char *progname;
 static char *abs_top_srcdir;
-struct qemud_driver driver;
+static struct qemud_driver driver;
 
 #define MAX_FILE 4096
 
index c42e6fb68dac8860be86302827a12c6505c0fc68..2ab169674d4899cc7fba2989847af2df6ca284fd 100644 (file)
@@ -16,7 +16,7 @@
 
 static char *progname;
 static char *abs_top_srcdir;
-struct qemud_driver driver;
+static struct qemud_driver driver;
 
 #define MAX_FILE 4096