mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user