diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-05 12:34:47 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-27 09:13:04 +0300 |
commit | 6c9d1330afe1159a0acf4d9678ee77b41918dc5f (patch) | |
tree | cc449da513c94a9c44bc297304d5a4f5c0daa89e /server/smartcard.c | |
parent | b3c16d2ae7b392a72afe00b7c6e180c966340cf7 (diff) | |
download | spice-6c9d1330afe1159a0acf4d9678ee77b41918dc5f.tar.gz spice-6c9d1330afe1159a0acf4d9678ee77b41918dc5f.tar.xz spice-6c9d1330afe1159a0acf4d9678ee77b41918dc5f.zip |
smartcard: fix PIPE_ITEMs enum indexing
The enum should start from PIPE_ITEM_TYPE_CHANNEL_BASE, otherwise,
PIPE_ITEM_TYPE_ERROR is handled like PIPE_ITEM_TYPE_SET_ACK.
Diffstat (limited to 'server/smartcard.c')
-rw-r--r-- | server/smartcard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/smartcard.c b/server/smartcard.c index 44a3faed..bbd68266 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, }; |