[libvirt] [PATCH] fix build break

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I pushed this trivial patch to fix a build break earlier today.

Dave
>From 67253251c576cf29edd7f45354c4e6664b8f5178 Mon Sep 17 00:00:00 2001
From: David Allan <dallan@xxxxxxxxxx>
Date: Fri, 26 Mar 2010 13:05:19 -0400
Subject: [PATCH 1/1] Fix build break

* Add types to switch; the switch is only exectuted for known types because of a preceding conditional, so this fix is merely to placate the compiler.
---
 src/xen/xend_internal.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/xen/xend_internal.c b/src/xen/xend_internal.c
index 87c26e5..46e19cd 100644
--- a/src/xen/xend_internal.c
+++ b/src/xen/xend_internal.c
@@ -5719,6 +5719,15 @@ xenDaemonFormatSxprNet(virConnectPtr conn,
         if (def->data.ethernet.ipaddr != NULL)
             virBufferVSprintf(buf, "(ip '%s')", def->data.ethernet.ipaddr);
         break;
+
+    case VIR_DOMAIN_NET_TYPE_USER:
+    case VIR_DOMAIN_NET_TYPE_SERVER:
+    case VIR_DOMAIN_NET_TYPE_CLIENT:
+    case VIR_DOMAIN_NET_TYPE_MCAST:
+    case VIR_DOMAIN_NET_TYPE_INTERNAL:
+    case VIR_DOMAIN_NET_TYPE_DIRECT:
+    case VIR_DOMAIN_NET_TYPE_LAST:
+        break;
     }

     if (def->ifname != NULL &&
-- 
1.7.0.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]