The enum should start from PIPE_ITEM_TYPE_CHANNEL_BASE, otherwise,
PIPE_ITEM_TYPE_ERROR is handled like PIPE_ITEM_TYPE_SET_ACK.
---
 server/smartcard.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/smartcard.c b/server/smartcard.c
index 44a3fae..bbd6826 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -66,7 +66,7 @@ struct SmartCardDeviceState {
 };
 
 enum {
-    PIPE_ITEM_TYPE_ERROR=1,
+    PIPE_ITEM_TYPE_ERROR = PIPE_ITEM_TYPE_CHANNEL_BASE,
     PIPE_ITEM_TYPE_MSG,
 };
 
-- 
1.7.7.6

_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to