maint: clean up _virDomainMemoryStat

Clean up all _virDomainMemoryStat.

Signed-off-by: James <james.wangyufei@huawei.com>
Signed-off-by: Wang Rui <moon.wangrui@huawei.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Wang Yufei 2014-09-16 21:19:47 +08:00 committed by Eric Blake
parent 744d0f3de0
commit 18a6dc93e5
7 changed files with 7 additions and 7 deletions

View File

@ -1604,7 +1604,7 @@ remoteDispatchDomainMemoryStats(virNetServerPtr server ATTRIBUTE_UNUSED,
remote_domain_memory_stats_ret *ret)
{
virDomainPtr dom = NULL;
struct _virDomainMemoryStat *stats = NULL;
virDomainMemoryStatPtr stats = NULL;
int nr_stats;
size_t i;
int rv = -1;

View File

@ -535,7 +535,7 @@ typedef int
typedef int
(*virDrvDomainMemoryStats)(virDomainPtr domain,
struct _virDomainMemoryStat *stats,
virDomainMemoryStatPtr stats,
unsigned int nr_stats,
unsigned int flags);

View File

@ -5387,7 +5387,7 @@ lxcNodeGetInfo(virConnectPtr conn,
static int
lxcDomainMemoryStats(virDomainPtr dom,
struct _virDomainMemoryStat *stats,
virDomainMemoryStatPtr stats,
unsigned int nr_stats,
unsigned int flags)
{

View File

@ -10187,7 +10187,7 @@ qemuDomainGetInterfaceParameters(virDomainPtr dom,
static int
qemuDomainMemoryStats(virDomainPtr dom,
struct _virDomainMemoryStat *stats,
virDomainMemoryStatPtr stats,
unsigned int nr_stats,
unsigned int flags)
{

View File

@ -684,7 +684,7 @@ int qemuMonitorTextGetBalloonInfo(qemuMonitorPtr mon,
if ((offset = strstr(reply, BALLOON_PREFIX)) != NULL) {
offset += strlen(BALLOON_PREFIX);
struct _virDomainMemoryStat stats[1];
virDomainMemoryStatStruct stats[1];
if (qemuMonitorParseBalloonInfo(offset, stats, 1) == 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,

View File

@ -2690,7 +2690,7 @@ remoteDomainGetSchedulerType(virDomainPtr domain, int *nparams)
static int
remoteDomainMemoryStats(virDomainPtr domain,
struct _virDomainMemoryStat *stats,
virDomainMemoryStatPtr stats,
unsigned int nr_stats,
unsigned int flags)
{

View File

@ -295,7 +295,7 @@ cmdDomMemStat(vshControl *ctl, const vshCmd *cmd)
{
virDomainPtr dom;
const char *name;
struct _virDomainMemoryStat stats[VIR_DOMAIN_MEMORY_STAT_NR];
virDomainMemoryStatStruct stats[VIR_DOMAIN_MEMORY_STAT_NR];
unsigned int nr_stats;
size_t i;
int ret = false;