提交 83ed0301 编写于 作者: E Eric Blake

xml: fix struct typos

Noticed this while reviewing Dan's patches.

* src/util/xml.c (virXMLRewritFileData): Rename to
virXMLRewriteFileData.
上级 9b516aa3
/*
* xml.c: XML based interfaces for the libvir library
*
* Copyright (C) 2005, 2007-2011 Red Hat, Inc.
* Copyright (C) 2005, 2007-2012 Red Hat, Inc.
*
* See COPYING.LIB for the License of this software
*
......@@ -842,7 +842,7 @@ or other application using the libvirt API.\n\
}
struct virXMLRewritFileData {
struct virXMLRewriteFileData {
const char *warnName;
const char *warnCommand;
const char *xml;
......@@ -851,7 +851,7 @@ struct virXMLRewritFileData {
static int
virXMLRewriteFile(int fd, void *opaque)
{
struct virXMLRewritFileData *data = opaque;
struct virXMLRewriteFileData *data = opaque;
if (data->warnName && data->warnCommand) {
if (virXMLEmitWarning(fd, data->warnName, data->warnCommand) < 0)
......@@ -870,7 +870,7 @@ virXMLSaveFile(const char *path,
const char *warnCommand,
const char *xml)
{
struct virXMLRewritFileData data = { warnName, warnCommand, xml };
struct virXMLRewriteFileData data = { warnName, warnCommand, xml };
return virFileRewrite(path, S_IRUSR | S_IWUSR, virXMLRewriteFile, &data);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册