mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-01 01:15:19 +00:00
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:
parent
6aae9a9efb
commit
f510a6128b
@ -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>
|
Sun Jan 13 22:59:53 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/remote_internal.c: Refactor code to make error patches
|
* src/remote_internal.c: Refactor code to make error patches
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <libvirt/libvirt.h>
|
#include <libvirt/libvirt.h>
|
||||||
|
|
||||||
virConnectPtr conn = NULL; /* the hypervisor connection */
|
static virConnectPtr conn = NULL; /* the hypervisor connection */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* checkDomainState:
|
* checkDomainState:
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
static char *progname;
|
static char *progname;
|
||||||
static char *abs_top_srcdir;
|
static char *abs_top_srcdir;
|
||||||
struct qemud_driver driver;
|
static struct qemud_driver driver;
|
||||||
|
|
||||||
#define MAX_FILE 4096
|
#define MAX_FILE 4096
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
static char *progname;
|
static char *progname;
|
||||||
static char *abs_top_srcdir;
|
static char *abs_top_srcdir;
|
||||||
struct qemud_driver driver;
|
static struct qemud_driver driver;
|
||||||
|
|
||||||
#define MAX_FILE 4096
|
#define MAX_FILE 4096
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user