[spice PATCH 27/55] smartcard: fix PIPE_ITEMs enum indexing

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

 



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
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]