[Spice-devel] [PATCH 14/15] smartcard: Move private constant to C file

Frediano Ziglio fziglio at redhat.com
Wed Mar 9 16:28:26 UTC 2016


From: Christophe Fergeau <cfergeau at redhat.com>

APDUBufSize is only used within smartcard.c, no need to expose it in
smartcard.h
---
 server/smartcard.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/server/smartcard.c b/server/smartcard.c
index 73c11e9..d417a23 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -46,6 +46,9 @@
  */
 #define SMARTCARD_MAX_READERS 10
 
+// Maximal length of APDU
+#define APDUBufSize 270
+
 typedef struct SmartCardDeviceState SmartCardDeviceState;
 
 typedef struct SmartCardChannelClient {
-- 
2.5.0



More information about the Spice-devel mailing list