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

[libvirt] [PATCH] fix build break



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 redhat com>
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


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