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.


Author: Jim Meyering <meyering@redhat.com>
This commit is contained in:
Jim Meyering 2008-01-14 14:04:33 +00:00
parent 6aae9a9efb
commit f510a6128b
4 changed files with 10 additions and 3 deletions

View File

@ -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

View 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:

View 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

View 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