]> xenbits.xensource.com Git - libvirt.git/commitdiff
Only build virDomainObjFormat if not building proxy.
authorChris Lalancette <clalance@redhat.com>
Wed, 24 Feb 2010 20:45:16 +0000 (15:45 -0500)
committerChris Lalancette <clalance@redhat.com>
Fri, 26 Feb 2010 13:46:17 +0000 (08:46 -0500)
While building under RHEL-5, I got a compile warning because
virDomainObjFormat was defined but not used.  That came about
because in RHEL-5 we build with "#define PROXY", and
virDomainObjFormat is only used with !PROXY.  Move the
define.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
src/conf/domain_conf.c

index 4ffeb8ae0c56d2a29d47de5ad638697d4e937129..442044553455f52e52099a473f2f77f89ccba23f 100644 (file)
@@ -5660,6 +5660,8 @@ char *virDomainDefFormat(virDomainDefPtr def,
     return NULL;
 }
 
+#ifndef PROXY
+
 static char *virDomainObjFormat(virCapsPtr caps,
                                 virDomainObjPtr obj,
                                 int flags)
@@ -5695,9 +5697,6 @@ error:
     return NULL;
 }
 
-
-#ifndef PROXY
-
 int virDomainSaveXML(const char *configDir,
                      virDomainDefPtr def,
                      const char *xml)