]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix WIN32 conditional for disabling console command
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 15 Aug 2012 20:43:01 +0000 (21:43 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 15 Aug 2012 20:43:01 +0000 (21:43 +0100)
The '#endif' for a WIN32 conditional was placed one function
too high, leaving the impl of the console command enabled
and referencing functions that were disabled

tools/virsh-domain.c

index 69e0133450df3dcb32873a54726776f66005fe31..676c002e68a77e2fc4e243d8ed2ce94c073d883f 100644 (file)
@@ -1662,7 +1662,6 @@ cmdRunConsole(vshControl *ctl, virDomainPtr dom,
 
     return ret;
 }
-#endif /* WIN32 */
 
 static bool
 cmdConsole(vshControl *ctl, const vshCmd *cmd)
@@ -1696,6 +1695,7 @@ cleanup:
     virDomainFree(dom);
     return ret;
 }
+#endif /* WIN32 */
 
 /* "domif-setlink" command
  */