提交 f510a612 编写于 作者: J Jim Meyering

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>
上级 6aae9a9e
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
......
......@@ -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:
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册