]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
xml: fix struct typos
authorEric Blake <eblake@redhat.com>
Fri, 27 Jan 2012 18:07:21 +0000 (11:07 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 27 Jan 2012 18:08:58 +0000 (11:08 -0700)
Noticed this while reviewing Dan's patches.

* src/util/xml.c (virXMLRewritFileData): Rename to
virXMLRewriteFileData.

src/util/xml.c

index c633521ce84de8d8c6c6039e34256b1fb0ea12c9..b426653a7a9bd0f37f41432444e1d783524a58a9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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);
 }